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 JsArrayMyDslJson. deserializeToJsArray(byte[] bytes, JsSpecParser parser)JsArrayMyDslJson. deserializeToJsArray(java.io.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)Method parameters in com.dslplatform.json.parsers with type arguments of type JsArray Modifier and Type Method Description JsSpecParserJsSpecParsers. ofArrayOfBoolSuchThat(java.util.function.Function<JsArray,java.util.Optional<Error>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfDecimalSuchThat(java.util.function.Function<JsArray,java.util.Optional<Error>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfIntegralSuchThat(java.util.function.Function<JsArray,java.util.Optional<Error>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfIntSuchThat(java.util.function.Function<JsArray,java.util.Optional<Error>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfLongSuchThat(java.util.function.Function<JsArray,java.util.Optional<Error>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfNumberSuchThat(java.util.function.Function<JsArray,java.util.Optional<Error>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfObjSuchThat(java.util.function.Function<JsArray,java.util.Optional<Error>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfStrSuchThat(java.util.function.Function<JsArray,java.util.Optional<Error>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfValueSuchThat(java.util.function.Function<JsArray,java.util.Optional<Error>> p, boolean nullable) -
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. EMPTYFields in jsonvalues with type parameters of type JsArray Modifier and Type Field Description static Prism<JsValue,JsArray>JsArray. prismprism between the sum type JsValue and JsArrayMethods in jsonvalues that return JsArray Modifier and Type Method Description 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. delete(int index)JsArrayJsArray. delete(JsPath path)static JsArrayJsArray. empty()JsArrayJsArray. filterAllKeys(java.util.function.Predicate<? super JsPair> filter)JsArrayJsArray. filterAllObjs(java.util.function.BiPredicate<? super JsPath,? super JsObj> filter)JsArrayJsArray. filterAllValues(java.util.function.Predicate<? super JsPair> filter)JsArrayJsArray. filterKeys(java.util.function.Predicate<? super JsPair> filter)JsArrayJsArray. filterObjs(java.util.function.BiPredicate<? super JsPath,? super JsObj> filter)JsArrayJsArray. filterValues(java.util.function.Predicate<? super JsPair> filter)JsArrayJsObj. getArray(java.lang.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(java.util.function.Function<? super JsPair,java.lang.String> fn)JsArrayJsArray. mapAllObjs(java.util.function.BiFunction<? super JsPath,? super JsObj,JsValue> fn)JsArrayJsArray. mapAllValues(java.util.function.Function<? super JsPair,? extends JsValue> fn)JsArrayJsArray. mapKeys(java.util.function.Function<? super JsPair,java.lang.String> fn)JsArrayJsArray. mapObjs(java.util.function.BiFunction<? super JsPath,? super JsObj,JsValue> fn)JsArrayJsArray. mapValues(java.util.function.Function<? super JsPair,? extends JsValue> fn)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(java.lang.String str, java.lang.String... others)Returns an immutable array from one or more strings.static JsArrayJsArray. of(java.math.BigInteger number, java.math.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(java.lang.Iterable<? extends JsValue> iterable)returns an immutable json array from an iterable of json elementsstatic JsArrayJsArray. parse(java.lang.String str)Tries to parse the string into an immutable json array.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. set(JsPath path, JsValue element)JsArrayJsArray. set(JsPath path, JsValue value, JsValue padElement)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 Lens<JsArray,JsArray>JsOptics.JsArrayLenses. array(int index)lens that focus on the json array located at an index in an arrayLens<JsArray,JsArray>JsOptics.JsArrayLenses. array(int index)lens that focus on the json array located at an index in an arrayLens<JsArray,JsArray>JsOptics.JsArrayLenses. array(JsPath path)lens that focus on the json array located at a path in an arrayLens<JsArray,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 arrayLens<JsObj,JsArray>JsOptics.JsObjLenses. array(java.lang.String key)lens that focus on a json array located at a key in an object.Lens<JsObj,JsArray>JsOptics.JsObjLenses. array(JsPath path)lens that focus on a json object located at a path in an object.Option<JsObj,JsArray>JsOptics.JsObjOptional. array(java.lang.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 objectLens<JsArray,byte[]>JsOptics.JsArrayLenses. binary(int index)lens that focus on an array of bytes located at an index in an arrayLens<JsArray,byte[]>JsOptics.JsArrayLenses. binary(JsPath path)lens that focus on an array of bytes located at a path in an arrayLens<JsArray,java.lang.Boolean>JsOptics.JsArrayLenses. bool(int index)lens that focus on the boolean located at an index in an arrayLens<JsArray,java.lang.Boolean>JsOptics.JsArrayLenses. bool(JsPath path)lens that focus on the boolean located at a path in an arrayOption<JsArray,java.lang.Boolean>JsOptics.JsArrayOptionals. bool(int index)optional that focus on the boolean located at an index in an arrayOption<JsArray,java.lang.Boolean>JsOptics.JsArrayOptionals. bool(JsPath path)optional that focus on the boolean located at a path in an arrayLens<JsArray,java.math.BigDecimal>JsOptics.JsArrayLenses. decimalNum(int index)lens that focus on the decimal number located at an index in an arrayLens<JsArray,java.math.BigDecimal>JsOptics.JsArrayLenses. decimalNum(JsPath path)lens that focus on the decimal number located at a path in an arrayOption<JsArray,java.math.BigDecimal>JsOptics.JsArrayOptionals. decimalNum(int index)optional that focus on the decimal number located at an index in an arrayOption<JsArray,java.math.BigDecimal>JsOptics.JsArrayOptionals. decimalNum(JsPath path)optional that focus on the decimal number located at a path in an arrayLens<JsArray,java.lang.Double>JsOptics.JsArrayLenses. doubleNum(int index)lens that focus on the double number located at an index in an arrayLens<JsArray,java.lang.Double>JsOptics.JsArrayLenses. doubleNum(JsPath path)lens that focus on the double number located at a path in an arrayOption<JsArray,java.lang.Double>JsOptics.JsArrayOptionals. doubleNum(int index)optional that focus on the double number located at an index in an arrayOption<JsArray,java.lang.Double>JsOptics.JsArrayOptionals. doubleNum(JsPath path)optional that focus on the double number located at a path in an arrayLens<JsArray,java.time.Instant>JsOptics.JsArrayLenses. instant(int index)lens that focus on the array of bytes at an index in an arrayLens<JsArray,java.time.Instant>JsOptics.JsArrayLenses. instant(JsPath path)lens that focus on the array of bytes located at a path in an arrayOption<JsArray,java.time.Instant>JsOptics.JsArrayOptionals. instant(int index)optional that focus on the instant located at an index in an arrayOption<JsArray,java.time.Instant>JsOptics.JsArrayOptionals. instant(JsPath path)optional that focus on the instant located at a path in an arrayLens<JsArray,java.math.BigInteger>JsOptics.JsArrayLenses. integralNum(int index)lens that focus on the integral number located at an index in an arrayLens<JsArray,java.math.BigInteger>JsOptics.JsArrayLenses. integralNum(JsPath path)lens that focus on the integral number located at a path in an arrayOption<JsArray,java.math.BigInteger>JsOptics.JsArrayOptionals. integralNum(int index)optional that focus on the integral number located at an index in an arrayOption<JsArray,java.math.BigInteger>JsOptics.JsArrayOptionals. integralNum(JsPath path)optional that focus on the integral number located at a path in an arrayLens<JsArray,java.lang.Integer>JsOptics.JsArrayLenses. intNum(int index)lens that focus on the integer number located at an index in an arrayLens<JsArray,java.lang.Integer>JsOptics.JsArrayLenses. intNum(JsPath path)lens that focus on the integer number located at a path in an arrayOption<JsArray,java.lang.Integer>JsOptics.JsArrayOptionals. intNum(int index)optional that focus on the integer number located at an index in an arrayOption<JsArray,java.lang.Integer>JsOptics.JsArrayOptionals. intNum(JsPath path)optional that focus on the integer number located at a path in an arrayLens<JsArray,java.lang.Long>JsOptics.JsArrayLenses. longNum(int index)lens that focus on the long number located at an index in an arrayLens<JsArray,java.lang.Long>JsOptics.JsArrayLenses. longNum(JsPath path)lens that focus on the long number located at a path in an arrayOption<JsArray,java.lang.Long>JsOptics.JsArrayOptionals. longNum(int index)optional that focus on the long number located at an index in an arrayOption<JsArray,java.lang.Long>JsOptics.JsArrayOptionals. longNum(JsPath path)optional that focus on the long number located at a path in an arrayLens<JsArray,JsObj>JsOptics.JsArrayLenses. obj(int index)lens that focus on the json object located at an index in an arrayLens<JsArray,JsObj>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 arrayLens<JsArray,java.lang.String>JsOptics.JsArrayLenses. str(int index)lens that focus on the string located at an index in an arrayLens<JsArray,java.lang.String>JsOptics.JsArrayLenses. str(JsPath path)lens that focus on the string located at a path in an arrayOption<JsArray,java.lang.String>JsOptics.JsArrayOptionals. str(int index)optional that focus on the string located at an index in an arrayOption<JsArray,java.lang.String>JsOptics.JsArrayOptionals. str(JsPath path)optional that focus on the string located at a path in an arrayLens<JsArray,JsValue>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 JsArrayJsArray. appendAll(JsArray array)Adds all the elements of the given array, starting from the head, to the back of this array.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. 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 booleanJsValue. isArray(java.util.function.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 JsArrayJsArrayConsole. 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 java.util.concurrent.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 JsArrayJsArrayParser. parse(byte[] bytes)parses an array of bytes into a Json array that must conform the spec of the parser.JsArrayJsArrayParser. parse(java.io.InputStream inputstream)parses an input stream of bytes into a Json array that must conform the spec of the parser.JsArrayJsArrayParser. parse(java.lang.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 java.util.Set<JsErrorPair>JsArraySpec. test(JsArray value)java.util.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(java.util.function.Predicate<JsArray> predicate)non-nullable array of booleans that satisfies the given predicatestatic JsArraySpecJsSpecs. arrayOfDecSuchThat(java.util.function.Predicate<JsArray> predicate)non-nullable array of decimal numbers that satisfies the given predicatestatic JsArraySpecJsSpecs. arrayOfIntegralSuchThat(java.util.function.Predicate<JsArray> predicate)non-nullable array of integral numbers that satisfies the given predicatestatic JsArraySpecJsSpecs. arrayOfIntSuchThat(java.util.function.Predicate<JsArray> predicate)non-nullable array of numbers that satisfies the given predicatestatic JsArraySpecJsSpecs. arrayOfLongSuchThat(java.util.function.Predicate<JsArray> predicate)non-nullable array of long numbers that satisfies the given predicatestatic JsArraySpecJsSpecs. arrayOfNumberSuchThat(java.util.function.Predicate<JsArray> predicate)non-nullable array of numbers that satisfies the given predicatestatic JsArraySpecJsSpecs. arrayOfObjSuchThat(java.util.function.Predicate<JsArray> predicate)non-nullable array of objects that satisfies the given predicatestatic JsArraySpecJsSpecs. arrayOfStrSuchThat(java.util.function.Predicate<JsArray> predicate)non-nullable array of strings that satisfies the given predicatestatic JsArraySpecJsSpecs. arraySuchThat(java.util.function.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 JsArrayJsArraySupplier. get()
-