Uses of Class
jsonvalues.JsArray
Packages that use JsArray
Package
Description
json-values is a one-package and zero-dependency library to work with jsons in a declarative and functional way.
-
Uses of JsArray in com.dslplatform.json
Methods in com.dslplatform.json that return JsArrayModifier and TypeMethodDescriptionJsArraySpecParser.array
(com.dslplatform.json.JsonReader<?> reader) MyDslJson.deserializeToJsArray
(byte[] bytes, JsSpecParser parser) MyDslJson.deserializeToJsArray
(InputStream is, JsSpecParser parser) Method parameters in com.dslplatform.json with type arguments of type JsArrayModifier and TypeMethodDescriptionJsSpecParsers.ofArrayOfBoolSuchThat
(Function<JsArray, Optional<JsError>> p, boolean nullable) JsSpecParsers.ofArrayOfDecimalSuchThat
(Function<JsArray, Optional<JsError>> p, boolean nullable) JsSpecParsers.ofArrayOfIntegralSuchThat
(Function<JsArray, Optional<JsError>> p, boolean nullable) JsSpecParsers.ofArrayOfIntSuchThat
(Function<JsArray, Optional<JsError>> p, boolean nullable) JsSpecParsers.ofArrayOfLongSuchThat
(Function<JsArray, Optional<JsError>> p, boolean nullable) JsSpecParsers.ofArrayOfNumberSuchThat
(Function<JsArray, Optional<JsError>> p, boolean nullable) JsSpecParsers.ofArrayOfObjSuchThat
(Function<JsArray, Optional<JsError>> p, boolean nullable) JsSpecParsers.ofArrayOfStrSuchThat
(Function<JsArray, Optional<JsError>> p, boolean nullable) JsSpecParsers.ofArrayOfValueSuchThat
(Function<JsArray, Optional<JsError>> p, boolean nullable) -
Uses of JsArray in jsonvalues
Fields in jsonvalues declared as JsArrayFields 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()
JsArray.filterAllKeys
(BiPredicate<? super JsPath, ? super JsValue> filter) JsArray.filterAllKeys
(Predicate<? super String> filter) JsArray.filterAllObjs
(BiPredicate<? super JsPath, ? super JsObj> filter) JsArray.filterAllObjs
(Predicate<? super JsObj> filter) JsArray.filterAllValues
(BiPredicate<? super JsPath, ? super JsPrimitive> filter) JsArray.filterAllValues
(Predicate<? super JsPrimitive> filter) JsArray.filterKeys
(BiPredicate<? super String, ? super JsValue> filter) JsArray.filterKeys
(Predicate<? super String> filter) JsArray.filterObjs
(BiPredicate<? super Integer, ? super JsObj> filter) JsArray.filterObjs
(Predicate<? super JsObj> filter) JsArray.filterValues
(BiPredicate<? super Integer, ? 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.intersection(that, SET)
returns an array with the elements that exist in boththis
andthat
.JsArray.intersectionAll
(JsArray that) this.intersectionAll(that)
behaves asthis.intersection(that, LIST)
, but for those elements that are containers of the same type and are located at the same position, the result is their intersection.JsArray.mapAllKeys
(BiFunction<? super JsPath, ? super JsValue, String> fn) JsArray.mapAllKeys
(Function<? super String, String> fn) JsArray.mapAllObjs
(BiFunction<? super JsPath, ? super JsObj, ? extends JsValue> fn) JsArray.mapAllObjs
(Function<? super JsObj, ? extends JsValue> fn) JsArray.mapAllValues
(BiFunction<? super JsPath, ? super JsPrimitive, ? extends JsValue> fn) JsArray.mapAllValues
(Function<? super JsPrimitive, ? extends JsValue> fn) JsArray.mapKeys
(BiFunction<? super String, ? super JsValue, String> fn) JsArray.mapObjs
(BiFunction<? super Integer, ? super JsObj, JsValue> fn) JsArray.mapValues
(BiFunction<? super Integer, ? 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 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
Tries to parse the string into an immutable json array.static JsArray
Tries to parse the YAML string into an immutable 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) this.union(that, SET)
returnsthis
plus those elements fromthat
that don't exist inthis
.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.intersection(that, SET)
returns an array with the elements that exist in boththis
andthat
.JsArray.intersectionAll
(JsArray that) this.intersectionAll(that)
behaves asthis.intersection(that, LIST)
, but for those elements that are containers of the same type and are located at the same position, the result is their intersection.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) this.union(that, SET)
returnsthis
plus those elements fromthat
that don't exist inthis
.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>
static fun.gen.Gen<JsArray>
static fun.gen.Gen<JsArray>
static fun.gen.Gen<JsArray>
Returns a tuple generator. -
Uses of JsArray in jsonvalues.spec
Methods in jsonvalues.spec that return JsArrayModifier and TypeMethodDescriptionJsArrayParser.parse
(byte[] bytes) parses an array of bytes into a Json array that must conform the spec of the parser.JsArrayParser.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.Methods in jsonvalues.spec with parameters of type JsArrayMethod parameters in jsonvalues.spec with type arguments of type JsArrayModifier and TypeMethodDescriptionstatic 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.arrayOfIntegralSuchThat
(Predicate<JsArray> predicate) non-nullable array of integral 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