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.gen jsonvalues.spec -
-
Uses of JsArray in com.dslplatform.json
Methods in com.dslplatform.json that return JsArray Modifier and Type Method Description JsArrayMyDslJson. deserializeToJsArray(byte[] bytes, JsSpecParser parser)JsArrayMyDslJson. 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 JsArrayJsArraySpecParser. 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 voidJsArraySerializer. 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 voidJsValueSerializer. 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 JsArrayJsArray. EMPTYMethods in jsonvalues that return JsArray Modifier and Type Method Description JsArrayJsArray. append(JsPath path, JsValue elem)JsArrayJsArray. append(JsValue e, JsValue... others)Adds one or more elements, starting from the first, to the back of this array.JsArrayJsArray. appendAll(JsArray array)Adds all the elements of the given array, starting from the head, to the back of this array.JsArrayJsArray. appendAll(JsPath path, JsArray elems)static JsArrayJsArray. empty()JsArrayJsArray. filterAllKeys(Predicate<? super JsPair> filter)JsArrayJsArray. filterAllObjs(BiPredicate<? super JsPath,? super JsObj> filter)JsArrayJsArray. filterAllValues(Predicate<? super JsPair> filter)JsArrayJsArray. filterKeys(Predicate<? super JsPair> filter)JsArrayJsArray. filterObjs(BiPredicate<? super JsPath,? super JsObj> filter)JsArrayJsArray. filterValues(Predicate<? super JsPair> filter)JsArrayJsObj. 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 JsArrayJson. getArray(JsPath path)Returns the array located at the given path or null if it doesn't exist or it's not an array.JsArrayJsArray. init()Returns all the elements of this array except the last one.JsArrayJsArray. intersection(JsArray that, JsArray.TYPE ARRAY_AS)this.intersection(that, SET)returns an array with the elements that exist in boththisandthat.JsArrayJsArray. 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.JsArrayJsArray. mapAllKeys(Function<? super JsPair,String> fn)JsArrayJsArray. mapAllKeys(Function<? super JsPair,String> fn, Predicate<? super JsPair> predicate)JsArrayJsArray. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)JsArrayJsArray. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)JsArrayJsArray. mapAllValues(Function<? super JsPair,? extends JsValue> fn)JsArrayJsArray. mapAllValues(Function<? super JsPair,? extends JsValue> fn, Predicate<? super JsPair> predicate)JsArrayJsArray. mapKeys(Function<? super JsPair,String> fn)JsArrayJsArray. mapKeys(Function<? super JsPair,String> fn, Predicate<? super JsPair> predicate)JsArrayJsArray. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)JsArrayJsArray. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)JsArrayJsArray. mapValues(Function<? super JsPair,? extends JsValue> fn)JsArrayJsArray. mapValues(Function<? super JsPair,? extends JsValue> fn, Predicate<? super JsPair> predicate)static JsArrayJsArray. of(boolean bool, boolean... others)Returns an immutable array from one or more booleans.static JsArrayJsArray. of(double number, double... others)Returns an immutable array from one or more doubles.static JsArrayJsArray. of(int number, int... others)Returns an immutable array from one or more integers.static JsArrayJsArray. of(long number, long... others)Returns an immutable array from one or more longs.static JsArrayJsArray. of(String str, String... others)Returns an immutable array from one or more strings.static JsArrayJsArray. of(BigInteger number, BigInteger... others)Returns an immutable array from one or more big integers.static JsArrayJsArray. of(JsPair pair, JsPair... others)Returns an immutable array from one or more pairs.static JsArrayJsArray. of(JsValue e)static JsArrayJsArray. of(JsValue e, JsValue e1)Returns an immutable two-element array.static JsArrayJsArray. of(JsValue e, JsValue e1, JsValue e2)Returns an immutable three-element array.static JsArrayJsArray. of(JsValue e, JsValue e1, JsValue e2, JsValue e3)Returns an immutable four-element array.static JsArrayJsArray. of(JsValue e, JsValue e1, JsValue e2, JsValue e3, JsValue e4)Returns an immutable five-element array.static JsArrayJsArray. of(JsValue e, JsValue e1, JsValue e2, JsValue e3, JsValue e4, JsValue... rest)Returns an immutable array.static JsArrayJsArray. ofIterable(Iterable<? extends JsValue> iterable)returns an immutable json array from an iterable of json elementsstatic JsArrayJsArray. parse(String str)Tries to parse the string into an immutable json array.static JsArrayJsArray. parse(String str, ParseBuilder builder)JsArrayJsArray. prepend(JsPath path, JsValue elem)JsArrayJsArray. prepend(JsValue e, JsValue... others)Adds one or more elements, starting from the last, to the front of this array.JsArrayJsArray. prependAll(JsArray array)Adds all the elements of the array, starting from the last, to the front of this array.JsArrayJsArray. prependAll(JsPath path, JsArray elems)JsArrayJsArray. put(JsPath path, Function<? super JsValue,? extends JsValue> fn)JsArrayJsArray. remove(JsPath path)JsArrayJsArray. tail()Returns a json array consisting of all elements of this array except the first one.default JsArrayJsValue. toJsArray()JsArrayJsArray. union(JsArray that, JsArray.TYPE ARRAY_AS)this.union(that, SET)returnsthisplus those elements fromthatthat don't exist inthis.JsArrayJsArray. unionAll(JsArray that)returnsthisplus those elements fromthatwhich position is>= this.size(), and, at the positions where a container of the same type exists in boththisandthat, the result is their union.Methods in jsonvalues that return types with arguments of type JsArray Modifier and Type Method Description Optional<JsArray>JsObj. getOptArray(String key)Returns the array located at the given key orOptional.empty()if it doesn't exist or it's not an array.default Optional<JsArray>Json. getOptArray(JsPath path)Returns the array located at the given path orOptional.empty()if it doesn't exist or it's not an array.Methods in jsonvalues with parameters of type JsArray Modifier and Type Method Description JsArrayJsArray. appendAll(JsArray array)Adds all the elements of the given array, starting from the head, to the back of this array.JsArrayJsArray. appendAll(JsPath path, JsArray elems)JsObjJsObj. appendAll(JsPath path, JsArray elems)TJson. appendAll(JsPath path, JsArray elems)Appends all the elements of the array, starting from the head, to the array located at the given path in this json.booleanJsArray. equals(JsArray array, JsArray.TYPE ARRAY_AS)Returns true if this array is equal to the given as a parameter.JsArrayJsArray. intersection(JsArray that, JsArray.TYPE ARRAY_AS)this.intersection(that, SET)returns an array with the elements that exist in boththisandthat.JsArrayJsArray. 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.JsArrayJsArray. prependAll(JsArray array)Adds all the elements of the array, starting from the last, to the front of this array.JsArrayJsArray. prependAll(JsPath path, JsArray elems)JsObjJsObj. prependAll(JsPath path, JsArray elems)TJson. prependAll(JsPath path, JsArray elems)prepends all the elements of the array, starting from the head, to the array located at the path in this json.JsObjJsObj. put(String key, JsArray value)Inserts the array at the key in this json, replacing any existing element.JsObjJsObj. putIfAbsent(String key, JsArray array)Inserts at the given key in this json, if no element is present, the specified array.default TJson. putIfAbsent(JsPath path, JsArray array)Inserts at the given path in this json, if no element is present, the specified array, replacing any existing element in the path and filling withJsNullempty positions in arrays when necessary.JsObjJsObj. putIfPresent(String key, JsArray array)Inserts at the given key in this json, if some element is present, the specified array.default TJson. putIfPresent(JsPath path, JsArray array)Inserts at the given path in this json, if some element is present, the specified integer.JsArrayJsArray. union(JsArray that, JsArray.TYPE ARRAY_AS)this.union(that, SET)returnsthisplus those elements fromthatthat don't exist inthis.JsArrayJsArray. unionAll(JsArray that)returnsthisplus those elements fromthatwhich position is>= this.size(), and, at the positions where a container of the same type exists in boththisandthat, the result is their union.Method parameters in jsonvalues with type arguments of type JsArray Modifier and Type Method Description default TJson. appendAllIfPresent(JsPath path, Supplier<JsArray> supplier)Appends all the elements of the array computed by the supplier, starting from the head, to an array located at the given path in this json, returning the same this instance if the array is not present, in which case, the supplier is not evaluated.static <T> Function<JsValue,T>MatchExp. ifArrElse(Function<? super JsArray,T> ifArr, Function<? super JsValue,T> ifNotArr)return a matching expression to extract arrays out of json elements.<T> Trampoline<T>JsArray. ifEmptyElse(Trampoline<T> empty, BiFunction<JsValue,JsArray,Trampoline<T>> fn)default booleanJsValue. isArray(Predicate<JsArray> predicate)Returns true if this elem is a JsArray and satisfies the given predicatedefault TJson. prependAllIfPresent(JsPath path, Supplier<JsArray> supplier)Prepends all the elements of the array computed by the supplier, starting from the head, to the array located at the path in this json, returning the same this instance if the array is not present, in which case, the supplier is not invoked. -
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. arrayOf(JsGen<?> gen, int size)static JsGen<JsArray>JsGens. tuple(JsGen<?> gen, JsGen<?>... others) -
Uses of JsArray in jsonvalues.spec
Methods in jsonvalues.spec that return JsArray Modifier and Type Method Description JsArrayJsArrayParser. parse(byte[] bytes)parses an array of bytes into a Json array that must conform the spec of the parser.JsArrayJsArrayParser. parse(InputStream inputstream)parses an input stream of bytes into a Json array that must conform the spec of the parser.JsArrayJsArrayParser. 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 JsArraySpecJsSpecs. arrayOfBoolSuchThat(Predicate<JsArray> predicate)static JsArraySpecJsSpecs. arrayOfDecSuchThat(Predicate<JsArray> predicate)static JsArraySpecJsSpecs. arrayOfIntegralSuchThat(Predicate<JsArray> predicate)static JsArraySpecJsSpecs. arrayOfIntSuchThat(Predicate<JsArray> predicate)static JsArraySpecJsSpecs. arrayOfLongSuchThat(Predicate<JsArray> predicate)static JsArraySpecJsSpecs. arrayOfNumberSuchThat(Predicate<JsArray> predicate)static JsArraySpecJsSpecs. arrayOfObjSuchThat(Predicate<JsArray> predicate)static JsArraySpecJsSpecs. arrayOfStrSuchThat(Predicate<JsArray> predicate)static JsArraySpecJsSpecs. arraySuchThat(Predicate<JsArray> predicate)
-