Uses of Class
jsonvalues.JsArray
Packages that use JsArray
Package
Description
This package includes all the classes to represents, create and manipulate JSON
this package includes all the JSON generators
This package includes all the classes to define specs to validate and parse JSON
-
Uses of JsArray in jsonvalues
Fields in jsonvalues with type parameters of type JsArrayMethods in jsonvalues that return JsArrayModifier and TypeMethodDescriptionAdds one or more elements, starting from the first, to the back of this array.Adds all the elements of the given array, starting from the head, to the back of this array.JsArray.delete
(int index) static JsArray
JsArray.empty()
Returns the empty JSON arrayJsArray.filterKeys
(BiPredicate<? super JsPath, ? super JsValue> filter) JsArray.filterKeys
(Predicate<? super String> filter) JsArray.filterObjs
(BiPredicate<? super JsPath, ? super JsObj> filter) JsArray.filterObjs
(Predicate<? super JsObj> filter) JsArray.filterValues
(BiPredicate<? super JsPath, ? super JsPrimitive> filter) JsArray.filterValues
(Predicate<? super JsPrimitive> filter) JsArray.getArray
(int index) Returns the array located at the given index or null if it doesn't exist or it's not a json array.Returns the array located at the given index or the default value provided if it doesn't exist or it's not a json array.Returns the array located at the given key or null if it doesn't exist, or it's not an array.Returns the array located at the given key or the default value provided if it doesn't exist or it's not an array.default JsArray
Returns the array located at the given path or null if it doesn't exist or it's not an array.default JsArray
Returns the array located at the given path or the default value provided if it doesn't exist or it's not an array.JsArray.init()
Returns all the elements of this array except the last one.JsArray.intersection
(JsArray that, JsArray.TYPE ARRAY_AS) this.union(that, SET)
returnsthis
plus those elements fromthat
that don't exist inthis
.JsArray.mapKeys
(BiFunction<? super JsPath, ? super JsValue, String> fn) JsArray.mapObjs
(BiFunction<? super JsPath, ? super JsObj, ? extends JsValue> fn) JsArray.mapValues
(BiFunction<? super JsPath, ? super JsPrimitive, ? extends JsValue> fn) JsArray.mapValues
(Function<? super JsPrimitive, ? extends JsValue> fn) static JsArray
JsArray.of
(boolean bool, boolean... others) Returns an immutable array from one or more booleans.static JsArray
JsArray.of
(double number, double... others) Returns an immutable array from one or more doubles.static JsArray
JsArray.of
(int number, int... others) Returns an immutable array from one or more integers.static JsArray
JsArray.of
(long number, long... others) Returns an immutable array from one or more longs.static JsArray
Returns an immutable array from one or more strings.static JsArray
JsArray.of
(BigInteger number, BigInteger... others) Returns an immutable array from one or more big integers.static JsArray
static JsArray
Returns an immutable two-element array.static JsArray
Returns an immutable three-element array.static JsArray
Returns an immutable four-element array.static JsArray
Returns an immutable and persistent five-element array.static JsArray
Returns an immutable array.static JsArray
JsArray.ofIterable
(Iterable<? extends JsValue> iterable) returns an immutable json array from an iterable of json elementsstatic JsArray
JsArray.parse
(byte[] bytes) Parses the given array of bytes into an immutable and persistent JSON array.static JsArray
Parses the given string into an immutable and persistent JSON array.Adds one or more elements, starting from the last, to the front of this array.JsArray.prependAll
(JsArray array) Adds all the elements of the array, starting from the last, to the front of this array.JsArray.tail()
Returns a json array consisting of all elements of this array except the first one.default JsArray
JsValue.toJsArray()
Returns this JsValue as a JsArrayJsArray.union
(JsArray that, JsArray.TYPE ARRAY_AS) returnsthis
plus those elements fromthat
which position is>= this.size()
, and, at the positions where a container of the same type exists in boththis
andthat
, the result is their union.Methods in jsonvalues that return types with arguments of type JsArrayModifier and TypeMethodDescriptionJsOptics.JsArrayLenses.array
(int index) lens that focus on the json array located at an index in an arrayJsOptics.JsArrayLenses.array
(int index) lens that focus on the json array located at an index in an arraylens that focus on the json array located at a path in an arraylens that focus on the json array located at a path in an arrayJsOptics.JsArrayOptionals.array
(int index) optional that focus on the json array located at an index in an arrayJsOptics.JsArrayOptionals.array
(int index) optional that focus on the json array located at an index in an arrayoptional that focus on the array located at a path in an arrayoptional that focus on the array located at a path in an arraylens that focus on a json array located at a key in an object.lens that focus on a json object located at a path in an object.optional that focus on the array located at a key in an objectoptional that focus on the array located at a path in an objectfun.optic.Lens<JsArray,
byte[]> JsOptics.JsArrayLenses.binary
(int index) lens that focus on an array of bytes located at an index in an arrayfun.optic.Lens<JsArray,
byte[]> lens that focus on an array of bytes located at a path in an arrayJsOptics.JsArrayLenses.bool
(int index) lens that focus on the boolean located at an index in an arraylens that focus on the boolean located at a path in an arrayJsOptics.JsArrayOptionals.bool
(int index) optional that focus on the boolean located at an index in an arrayoptional that focus on the boolean located at a path in an arrayfun.optic.Lens<JsArray,
BigDecimal> JsOptics.JsArrayLenses.decimalNum
(int index) lens that focus on the decimal number located at an index in an arrayfun.optic.Lens<JsArray,
BigDecimal> JsOptics.JsArrayLenses.decimalNum
(JsPath path) lens that focus on the decimal number located at a path in an arrayfun.optic.Option<JsArray,
BigDecimal> JsOptics.JsArrayOptionals.decimalNum
(int index) optional that focus on the decimal number located at an index in an arrayfun.optic.Option<JsArray,
BigDecimal> JsOptics.JsArrayOptionals.decimalNum
(JsPath path) optional that focus on the decimal number located at a path in an arrayJsOptics.JsArrayLenses.doubleNum
(int index) lens that focus on the double number located at an index in an arraylens that focus on the double number located at a path in an arrayJsOptics.JsArrayOptionals.doubleNum
(int index) optional that focus on the double number located at an index in an arrayoptional that focus on the double number located at a path in an arrayJsOptics.JsArrayLenses.instant
(int index) lens that focus on the array of bytes at an index in an arraylens that focus on the array of bytes located at a path in an arrayJsOptics.JsArrayOptionals.instant
(int index) optional that focus on the instant located at an index in an arrayoptional that focus on the instant located at a path in an arrayfun.optic.Lens<JsArray,
BigInteger> JsOptics.JsArrayLenses.integralNum
(int index) lens that focus on the integral number located at an index in an arrayfun.optic.Lens<JsArray,
BigInteger> JsOptics.JsArrayLenses.integralNum
(JsPath path) lens that focus on the integral number located at a path in an arrayfun.optic.Option<JsArray,
BigInteger> JsOptics.JsArrayOptionals.integralNum
(int index) optional that focus on the integral number located at an index in an arrayfun.optic.Option<JsArray,
BigInteger> JsOptics.JsArrayOptionals.integralNum
(JsPath path) optional that focus on the integral number located at a path in an arrayJsOptics.JsArrayLenses.intNum
(int index) lens that focus on the integer number located at an index in an arraylens that focus on the integer number located at a path in an arrayJsOptics.JsArrayOptionals.intNum
(int index) optional that focus on the integer number located at an index in an arrayoptional that focus on the integer number located at a path in an arrayJsOptics.JsArrayLenses.longNum
(int index) lens that focus on the long number located at an index in an arraylens that focus on the long number located at a path in an arrayJsOptics.JsArrayOptionals.longNum
(int index) optional that focus on the long number located at an index in an arrayoptional that focus on the long number located at a path in an arrayJsOptics.JsArrayLenses.obj
(int index) lens that focus on the json object located at an index in an arraylens that focus on the JSON object located at a path in an arrayJsOptics.JsArrayOptionals.obj
(int index) optional that focus on the json object located at an index in an arrayoptional that focus on the object located at a path in an arrayJsOptics.JsArrayLenses.str
(int index) lens that focus on the string located at an index in an arraylens that focus on the string located at a path in an arrayJsOptics.JsArrayOptionals.str
(int index) optional that focus on the string located at an index in an arrayoptional that focus on the string located at a path in an arrayJsOptics.JsArrayLenses.value
(int index) lens that focus on the value located at an index in an arraylens that focus on the value located at a path in an arrayMethods in jsonvalues with parameters of type JsArrayModifier and TypeMethodDescriptionAdds all the elements of the given array, starting from the head, to the back of this array.boolean
JsArray.equals
(JsArray array, JsArray.TYPE ARRAY_AS) Returns true if this array is equal to the given as a parameter.JsArray.intersection
(JsArray that, JsArray.TYPE ARRAY_AS) this.union(that, SET)
returnsthis
plus those elements fromthat
that don't exist inthis
.JsArray.prependAll
(JsArray array) Adds all the elements of the array, starting from the last, to the front of this array.JsArray.union
(JsArray that, JsArray.TYPE ARRAY_AS) returnsthis
plus those elements fromthat
which position is>= this.size()
, and, at the positions where a container of the same type exists in boththis
andthat
, the result is their union.Method parameters in jsonvalues with type arguments of type JsArrayModifier and TypeMethodDescriptionReturns the array located at the given index or the default value provided if it doesn't exist or it's not a json array.Returns the array located at the given key or the default value provided if it doesn't exist or it's not an array.default JsArray
Returns the array located at the given path or the default value provided if it doesn't exist or it's not an array.default boolean
Returns true if this elem is a JsArray and satisfies the given predicate -
Uses of JsArray in jsonvalues.gen
Methods in jsonvalues.gen that return types with arguments of type JsArrayModifier and TypeMethodDescriptionReturns a supplier from the specified seed that generates a new JsArray each time it's calledReturns a supplier from the specified seed that generates a new tuple, modeled with a JsArray, each time it's calledstatic fun.gen.Gen<JsArray>
returns an fixed-size array generatorstatic fun.gen.Gen<JsArray>
returns an array generatorstatic fun.gen.Gen<JsArray>
returns a biased array generatorstatic fun.gen.Gen<JsArray>
Returns a tuple generator. -
Uses of JsArray in jsonvalues.spec
Methods in jsonvalues.spec that return JsArrayModifier and TypeMethodDescriptionJsArraySpecParser.parse
(byte[] bytes) parses an array of bytes into a Json array that must conform the spec of the parser.JsArraySpecParser.parse
(InputStream inputstream) parses an input stream of bytes into a Json array that must conform the spec of the parser.parses a string into a Json array that must conform the spec of the parser.JsIO.parseToJsArray
(byte[] bytes) Parses the given array of bytes into an immutable and persistent JSON array.Method parameters in jsonvalues.spec with type arguments of type JsArrayModifier and TypeMethodDescriptionstatic JsArraySpec
JsSpecs.arrayOfBigIntSuchThat
(Predicate<JsArray> predicate) non-nullable array of integral numbers that satisfies the given predicatestatic JsArraySpec
JsSpecs.arrayOfBoolSuchThat
(Predicate<JsArray> predicate) non-nullable array of booleans that satisfies the given predicatestatic JsArraySpec
JsSpecs.arrayOfDecSuchThat
(Predicate<JsArray> predicate) non-nullable array of decimal numbers that satisfies the given predicatestatic JsArraySpec
JsSpecs.arrayOfIntSuchThat
(Predicate<JsArray> predicate) non-nullable array of numbers that satisfies the given predicatestatic JsArraySpec
JsSpecs.arrayOfLongSuchThat
(Predicate<JsArray> predicate) non-nullable array of long numbers that satisfies the given predicatestatic JsArraySpec
JsSpecs.arrayOfNumberSuchThat
(Predicate<JsArray> predicate) non-nullable array of numbers that satisfies the given predicatestatic JsArraySpec
JsSpecs.arrayOfObjSuchThat
(Predicate<JsArray> predicate) non-nullable array of objects that satisfies the given predicatestatic JsArraySpec
JsSpecs.arrayOfStrSuchThat
(Predicate<JsArray> predicate) non-nullable array of strings that satisfies the given predicatestatic JsArraySpec
JsSpecs.arraySuchThat
(Predicate<JsArray> predicate) non-nullable array that satisfies the given predicate