Uses of Class
jsonvalues.JsArray
-
Packages that use JsArray Package Description com.dslplatform.json the library dsl-json has been extended with some customization.com.dslplatform.json.parsers com.dslplatform.json.serializers jsonvalues json-values is a one-package and zero-dependency library to work with jsons in a declarative and functional way.jsonvalues.console jsonvalues.future jsonvalues.gen jsonvalues.spec jsonvalues.supplier -
-
Uses of JsArray in com.dslplatform.json
Methods in com.dslplatform.json that return JsArray Modifier and Type Method Description JsArray
MyDslJson. deserializeToJsArray(byte[] bytes, JsSpecParser parser)
JsArray
MyDslJson. deserializeToJsArray(InputStream is, JsSpecParser parser)
-
Uses of JsArray in com.dslplatform.json.parsers
Methods in com.dslplatform.json.parsers that return JsArray Modifier and Type Method Description JsArray
JsArraySpecParser. array(com.dslplatform.json.JsonReader<?> reader)
-
Uses of JsArray in com.dslplatform.json.serializers
Methods in com.dslplatform.json.serializers with parameters of type JsArray Modifier and Type Method Description void
JsArraySerializer. write(com.dslplatform.json.JsonWriter writer, JsArray list)
Method parameters in com.dslplatform.json.serializers with type arguments of type JsArray Modifier and Type Method Description void
JsValueSerializer. setArraySerializer(com.dslplatform.json.JsonWriter.WriteObject<JsArray> arraySerializer)
-
Uses of JsArray in jsonvalues
Fields in jsonvalues declared as JsArray Modifier and Type Field Description static JsArray
JsArray. EMPTY
Fields in jsonvalues with type parameters of type JsArray Modifier and Type Field Description static Prism<JsValue,JsArray>
JsArray. prism
prism between the sum type JsValue and JsArrayMethods in jsonvalues that return JsArray Modifier and Type Method Description JsArray
JsArray. append(JsValue e, JsValue... others)
Adds one or more elements, starting from the first, to the back of this array.JsArray
JsArray. appendAll(JsArray array)
Adds all the elements of the given array, starting from the head, to the back of this array.JsArray
JsArray. delete(int index)
JsArray
JsArray. delete(JsPath path)
static JsArray
JsArray. empty()
JsArray
JsArray. filterAllKeys(Predicate<? super JsPair> filter)
JsArray
JsArray. filterAllObjs(BiPredicate<? super JsPath,? super JsObj> filter)
JsArray
JsArray. filterAllValues(Predicate<? super JsPair> filter)
JsArray
JsArray. filterKeys(Predicate<? super JsPair> filter)
JsArray
JsArray. filterObjs(BiPredicate<? super JsPath,? super JsObj> filter)
JsArray
JsArray. filterValues(Predicate<? super JsPair> filter)
JsArray
JsObj. getArray(String key)
Returns the array located at the given key or null if it doesn't exist or it's not an array.default JsArray
Json. getArray(JsPath path)
Returns the array located at the given path or null if it doesn't exist or it's not an array.JsArray
JsArray. init()
Returns all the elements of this array except the last one.JsArray
JsArray. intersection(JsArray that, JsArray.TYPE ARRAY_AS)
this.intersection(that, SET)
returns an array with the elements that exist in boththis
andthat
.JsArray
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
JsArray. mapAllKeys(Function<? super JsPair,String> fn)
JsArray
JsArray. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsValue> fn)
JsArray
JsArray. mapAllValues(Function<? super JsPair,? extends JsValue> fn)
JsArray
JsArray. mapKeys(Function<? super JsPair,String> fn)
JsArray
JsArray. mapObjs(BiFunction<? super JsPath,? super JsObj,JsValue> fn)
JsArray
JsArray. mapValues(Function<? super JsPair,? 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
JsArray. of(String str, String... others)
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
JsArray. of(JsPair pair, JsPair... others)
Returns an immutable array from one or more pairs.static JsArray
JsArray. of(JsValue e)
static JsArray
JsArray. of(JsValue e, JsValue e1)
Returns an immutable two-element array.static JsArray
JsArray. of(JsValue e, JsValue e1, JsValue e2)
Returns an immutable three-element array.static JsArray
JsArray. of(JsValue e, JsValue e1, JsValue e2, JsValue e3)
Returns an immutable four-element array.static JsArray
JsArray. of(JsValue e, JsValue e1, JsValue e2, JsValue e3, JsValue e4)
Returns an immutable five-element array.static JsArray
JsArray. of(JsValue e, JsValue e1, JsValue e2, JsValue e3, JsValue e4, JsValue... rest)
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(String str)
Tries to parse the string into an immutable json array.JsArray
JsArray. prepend(JsValue e, JsValue... others)
Adds one or more elements, starting from the last, to the front of this array.JsArray
JsArray. prependAll(JsArray array)
Adds all the elements of the array, starting from the last, to the front of this array.JsArray
JsArray. set(JsPath path, JsValue element)
JsArray
JsArray. set(JsPath path, JsValue value, JsValue padElement)
JsArray
JsArray. tail()
Returns a json array consisting of all elements of this array except the first one.default JsArray
JsValue. toJsArray()
JsArray
JsArray. union(JsArray that, JsArray.TYPE ARRAY_AS)
this.union(that, SET)
returnsthis
plus those elements fromthat
that don't exist inthis
.JsArray
JsArray. unionAll(JsArray that)
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 JsArray Modifier and Type Method Description jsonvalues.JsArrayLens<JsArray>
JsOptics.JsArrayLenses. array(int index)
lens that focus on the json array located at an index in an arrayjsonvalues.JsArrayLens<JsArray>
JsOptics.JsArrayLenses. array(JsPath path)
lens that focus on the json array located at a path in an arrayOption<JsArray,JsArray>
JsOptics.JsArrayOptionals. array(int index)
optional that focus on the json array located at an index in an arrayOption<JsArray,JsArray>
JsOptics.JsArrayOptionals. array(int index)
optional that focus on the json array located at an index in an arrayOption<JsArray,JsArray>
JsOptics.JsArrayOptionals. array(JsPath path)
optional that focus on the array located at a path in an arrayOption<JsArray,JsArray>
JsOptics.JsArrayOptionals. array(JsPath path)
optional that focus on the array located at a path in an arrayOption<JsObj,JsArray>
JsOptics.JsObjOptional. array(String key)
optional that focus on the array located at a key in an objectOption<JsObj,JsArray>
JsOptics.JsObjOptional. array(JsPath path)
optional that focus on the array located at a path in an objectjsonvalues.JsBoolLens<JsArray>
JsOptics.JsArrayLenses. bool(int index)
lens that focus on the boolean located at an index in an arrayjsonvalues.JsBoolLens<JsArray>
JsOptics.JsArrayLenses. bool(JsPath path)
lens that focus on the boolean located at a path in an arrayOption<JsArray,Boolean>
JsOptics.JsArrayOptionals. bool(int index)
optional that focus on the boolean located at an index in an arrayOption<JsArray,Boolean>
JsOptics.JsArrayOptionals. bool(JsPath path)
optional that focus on the boolean located at a path in an arrayjsonvalues.JsDecimalLens<JsArray>
JsOptics.JsArrayLenses. decimalNum(int index)
lens that focus on the decimal number located at an index in an arrayjsonvalues.JsDecimalLens<JsArray>
JsOptics.JsArrayLenses. decimalNum(JsPath path)
lens that focus on the decimal number located at a path in an arrayOption<JsArray,BigDecimal>
JsOptics.JsArrayOptionals. decimalNum(int index)
optional that focus on the decimal number located at an index in an arrayOption<JsArray,BigDecimal>
JsOptics.JsArrayOptionals. decimalNum(JsPath path)
optional that focus on the decimal number located at a path in an arrayjsonvalues.JsDoubleLens<JsArray>
JsOptics.JsArrayLenses. doubleNum(int index)
lens that focus on the double number located at an index in an arrayjsonvalues.JsDoubleLens<JsArray>
JsOptics.JsArrayLenses. doubleNum(JsPath path)
lens that focus on the double number located at a path in an arrayOption<JsArray,Double>
JsOptics.JsArrayOptionals. doubleNum(int index)
optional that focus on the double number located at an index in an arrayOption<JsArray,Double>
JsOptics.JsArrayOptionals. doubleNum(JsPath path)
optional that focus on the double number located at a path in an arrayjsonvalues.JsBigIntLens<JsArray>
JsOptics.JsArrayLenses. integralNum(int index)
lens that focus on the integral number located at an index in an arrayjsonvalues.JsBigIntLens<JsArray>
JsOptics.JsArrayLenses. integralNum(JsPath path)
lens that focus on the integral number located at a path in an arrayOption<JsArray,BigInteger>
JsOptics.JsArrayOptionals. integralNum(int index)
optional that focus on the integral number located at an index in an arrayOption<JsArray,BigInteger>
JsOptics.JsArrayOptionals. integralNum(JsPath path)
optional that focus on the integral number located at a path in an arrayjsonvalues.JsIntLens<JsArray>
JsOptics.JsArrayLenses. intNum(int index)
lens that focus on the integer number located at an index in an arrayjsonvalues.JsIntLens<JsArray>
JsOptics.JsArrayLenses. intNum(JsPath path)
lens that focus on the integer number located at a path in an arrayOption<JsArray,Integer>
JsOptics.JsArrayOptionals. intNum(int index)
optional that focus on the integer number located at an index in an arrayOption<JsArray,Integer>
JsOptics.JsArrayOptionals. intNum(JsPath path)
optional that focus on the integer number located at a path in an arrayjsonvalues.JsLongLens<JsArray>
JsOptics.JsArrayLenses. longNum(int index)
lens that focus on the long number located at an index in an arrayjsonvalues.JsLongLens<JsArray>
JsOptics.JsArrayLenses. longNum(JsPath path)
lens that focus on the long number located at a path in an arrayOption<JsArray,Long>
JsOptics.JsArrayOptionals. longNum(int index)
optional that focus on the long number located at an index in an arrayOption<JsArray,Long>
JsOptics.JsArrayOptionals. longNum(JsPath path)
optional that focus on the long number located at a path in an arrayJsObjLens<JsArray>
JsOptics.JsArrayLenses. obj(int index)
lens that focus on the json object located at an index in an arrayJsObjLens<JsArray>
JsOptics.JsArrayLenses. obj(JsPath path)
lens that focus on the json object located at a path in an arrayOption<JsArray,JsObj>
JsOptics.JsArrayOptionals. obj(int index)
optional that focus on the json object located at an index in an arrayOption<JsArray,JsObj>
JsOptics.JsArrayOptionals. obj(JsPath path)
optional that focus on the object located at a path in an arrayjsonvalues.JsStrLens<JsArray>
JsOptics.JsArrayLenses. str(int index)
lens that focus on the string located at an index in an arrayjsonvalues.JsStrLens<JsArray>
JsOptics.JsArrayLenses. str(JsPath path)
lens that focus on the string located at a path in an arrayOption<JsArray,String>
JsOptics.JsArrayOptionals. str(int index)
optional that focus on the string located at an index in an arrayOption<JsArray,String>
JsOptics.JsArrayOptionals. str(JsPath path)
optional that focus on the string located at a path in an arrayjsonvalues.JsValueLens<JsArray>
JsOptics.JsArrayLenses. value(int index)
lens that focus on the value located at an index in an arrayLens<JsArray,JsValue>
JsOptics.JsArrayLenses. value(JsPath path)
lens that focus on the value located at a path in an arrayMethods in jsonvalues with parameters of type JsArray Modifier and Type Method Description JsArray
JsArray. appendAll(JsArray array)
Adds 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
JsArray. intersection(JsArray that, JsArray.TYPE ARRAY_AS)
this.intersection(that, SET)
returns an array with the elements that exist in boththis
andthat
.JsArray
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
JsArray. prependAll(JsArray array)
Adds all the elements of the array, starting from the last, to the front of this array.JsArray
JsArray. union(JsArray that, JsArray.TYPE ARRAY_AS)
this.union(that, SET)
returnsthis
plus those elements fromthat
that don't exist inthis
.JsArray
JsArray. unionAll(JsArray that)
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 JsArray Modifier and Type Method Description default boolean
JsValue. isArray(Predicate<JsArray> predicate)
Returns true if this elem is a JsArray and satisfies the given predicate -
Uses of JsArray in jsonvalues.console
Methods in jsonvalues.console that return JsArray Modifier and Type Method Description JsArray
JsArrayConsole. exec()
Methods in jsonvalues.console that return types with arguments of type JsArray Modifier and Type Method Description JsFuture<JsArray>
JsArrayConsole. apply(JsPath path)
-
Uses of JsArray in jsonvalues.future
Methods in jsonvalues.future that return types with arguments of type JsArray Modifier and Type Method Description CompletableFuture<JsArray>
JsArrayFuture. get()
it triggers the execution of all the completable futures, combining the results into a JsArray -
Uses of JsArray in jsonvalues.gen
Methods in jsonvalues.gen that return types with arguments of type JsArray Modifier and Type Method Description static JsGen<JsArray>
JsGens. array(JsGen<?> gen, int size)
Creates an array generator of the given size, whose elements are chosen from the given generatorstatic JsGen<JsArray>
JsGens. arrayDistinct(JsGen<?> gen, int size)
Generates an array of values from the given generator, with the guarantee that the elements will be distinct.static JsGen<JsArray>
JsGens. arrayDistinct(JsGen<?> gen, int size, int maxTries)
Generates an array of values from the given generator, with the guarantee that the elements will be distinct.static JsGen<JsArray>
JsGens. tuple(JsGen<?> gen, JsGen<?>... others)
Creates a tuple generator from the given generators. -
Uses of JsArray in jsonvalues.spec
Methods in jsonvalues.spec that return JsArray Modifier and Type Method Description JsArray
JsArrayParser. parse(byte[] bytes)
parses an array of bytes into a Json array that must conform the spec of the parser.JsArray
JsArrayParser. parse(InputStream inputstream)
parses an input stream of bytes into a Json array that must conform the spec of the parser.JsArray
JsArrayParser. parse(String str)
parses a string into a Json array that must conform the spec of the parser.Methods in jsonvalues.spec with parameters of type JsArray Modifier and Type Method Description default Set<JsErrorPair>
JsArraySpec. test(JsArray value)
Set<JsErrorPair>
JsTupleSpec. test(JsArray array)
Method parameters in jsonvalues.spec with type arguments of type JsArray Modifier and Type Method Description static 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 -
Uses of JsArray in jsonvalues.supplier
Methods in jsonvalues.supplier that return JsArray Modifier and Type Method Description JsArray
JsArraySupplier. get()
-