Uses of Interface
jsonvalues.JsValue
-
Packages that use JsValue Package Description com.dslplatform.json 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 JsValue in com.dslplatform.json
Methods in com.dslplatform.json that return JsValue Modifier and Type Method Description JsValueJsArraySpecParser. nullOrArray(com.dslplatform.json.JsonReader<?> reader)JsValueJsSpecParser. parse(com.dslplatform.json.JsonReader<?> reader)Method parameters in com.dslplatform.json with type arguments of type JsValue Modifier and Type Method Description JsSpecParserJsSpecParsers. ofArrayOfBoolSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfDecimalEachSuchThat(Function<BigDecimal,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)JsSpecParserJsSpecParsers. ofArrayOfDecimalSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfIntEachSuchThat(IntFunction<Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)JsSpecParserJsSpecParsers. ofArrayOfIntegralEachSuchThat(Function<BigInteger,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)JsSpecParserJsSpecParsers. ofArrayOfIntegralSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfIntSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfLongEachSuchThat(LongFunction<Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)JsSpecParserJsSpecParsers. ofArrayOfLongSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfNumberEachSuchThat(Function<JsNumber,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)JsSpecParserJsSpecParsers. ofArrayOfNumberSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfObjEachSuchThat(Function<JsObj,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)JsSpecParserJsSpecParsers. ofArrayOfObjSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfStrEachSuchThat(Function<String,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)JsSpecParserJsSpecParsers. ofArrayOfStrSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)JsSpecParserJsSpecParsers. ofArrayOfValueEachSuchThat(Function<JsValue,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)JsSpecParserJsSpecParsers. ofArrayOfValueEachSuchThat(Function<JsValue,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)JsSpecParserJsSpecParsers. ofArrayOfValueSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)JsSpecParserJsSpecParsers. ofBinarySuchThat(Function<byte[],Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)JsSpecParserJsSpecParsers. ofDecimalSuchThat(Function<BigDecimal,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)JsSpecParserJsSpecParsers. ofInstantSuchThat(Function<Instant,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)JsSpecParserJsSpecParsers. ofIntegralSuchThat(Function<BigInteger,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)JsSpecParserJsSpecParsers. ofIntSuchThat(IntFunction<Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)JsSpecParserJsSpecParsers. ofLongSuchThat(LongFunction<Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)JsSpecParserJsSpecParsers. ofNumberSuchThat(Function<JsNumber,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)JsSpecParserJsSpecParsers. ofObjSuchThat(Function<JsObj,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)JsSpecParserJsSpecParsers. ofStrSuchThat(Function<String,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)JsSpecParserJsSpecParsers. ofValueSuchThat(Function<JsValue,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate)JsSpecParserJsSpecParsers. ofValueSuchThat(Function<JsValue,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate) -
Uses of JsValue in jsonvalues
Subinterfaces of JsValue in jsonvalues Modifier and Type Interface Description interfaceJson<T extends Json<T>>Represents a json of type T, where T is the type of the container, either a JsObj or a JsArray.Classes in jsonvalues that implement JsValue Modifier and Type Class Description classJsArrayRepresents a json array, which is an ordered list of elements.classJsBigDecRepresents an immutable json number of type BigDecimal.classJsBigIntRepresents an immutable json number of type BigInteger.classJsBinaryRepresents an array of bytes.classJsBoolRepresents an immutable json boolean.classJsDoubleRepresents an immutable json number of type double.classJsInstantRepresents an immutable instant.classJsIntRepresents an immutable json number of type integer.classJsLongRepresents an immutable json number of type long.classJsNothingIt's a special json element that represents 'nothing'.classJsNullRepresents null, which a valid json value.classJsNumberRepresents an immutable json number.classJsObjRepresents a json object, which is an unordered set of name/element pairs.classJsPrimitiveclassJsStrRepresents an immutable json string.Fields in jsonvalues with type parameters of type JsValue Modifier and Type Field Description static fun.optic.Prism<JsValue,JsArray>JsArray. prismprism between the sum type JsValue and JsArraystatic fun.optic.Prism<JsValue,BigDecimal>JsBigDec. prismprism between the sum type JsValue and JsBigDecstatic fun.optic.Prism<JsValue,BigInteger>JsBigInt. prismstatic fun.optic.Prism<JsValue,byte[]>JsBinary. prismprism between the sum type JsValue and JsBinarystatic fun.optic.Prism<JsValue,Boolean>JsBool. prismprism between the sum type JsValue and JsBoolstatic fun.optic.Prism<JsValue,Double>JsDouble. prismprism between the sum type JsValue and JsDoublestatic fun.optic.Prism<JsValue,Instant>JsInstant. prismprism between the sum type JsValue and JsInstantstatic fun.optic.Prism<JsValue,Integer>JsInt. prismprism between the sum type JsValue and JsIntstatic fun.optic.Prism<JsValue,Long>JsLong. prismprism between the sum type JsValue and JsLongstatic fun.optic.Prism<JsValue,JsObj>JsObj. prismprism between the sum type JsValue and JsObjstatic fun.optic.Prism<JsValue,String>JsStr. prismprism between the sum type JsValue and JsStrMethods in jsonvalues that return JsValue Modifier and Type Method Description JsValueJsArray. get(int i)returns the element located at the specified index or JsNothing if it doesn't exist.JsValueJsArray. get(JsPath path)JsValueJsObj. get(String key)JsValueJsObj. get(JsPath path)JsValueJson. get(JsPath path)Returns the element located at the given path orJsNothingif it doesn't exist.JsValueJsArray. head()Returns the first element of this array.default JsValueJsValue. ifNothing(JsValue value)returns the specified default value if nothing or the same this objectdefault JsValueJsValue. ifNull(JsValue value)returns the specified default value if null or the same this objectJsValueJsArray. last()Returns the last element of this array.Methods in jsonvalues that return types with arguments of type JsValue Modifier and Type Method Description Iterator<JsValue>JsArray. iterator()Iterator<io.vavr.Tuple2<String,JsValue>>JsObj. iterator()Stream<fun.tuple.Pair<JsPath,JsValue>>JsArray. stream()Stream<fun.tuple.Pair<JsPath,JsValue>>JsObj. stream()Stream<fun.tuple.Pair<JsPath,JsValue>>Json. stream()Returns a stream over the pairs of elements in the first level of this json object.Stream<fun.tuple.Pair<JsPath,JsValue>>JsArray. streamAll()Stream<fun.tuple.Pair<JsPath,JsValue>>JsObj. streamAll()Stream<fun.tuple.Pair<JsPath,JsValue>>Json. streamAll()Returns a stream over all the pairs of elements in this json object.Stream<JsValue>JsArray. streamValues()Stream<JsValue>JsObj. streamValues()Stream<JsValue>Json. streamValues()fun.optic.Lens<JsArray,JsValue>JsOptics.JsArrayLenses. value(int index)lens that focus on the value located at an index in an arrayfun.optic.Lens<JsArray,JsValue>JsOptics.JsArrayLenses. value(JsPath path)lens that focus on the value located at a path in an arrayfun.optic.Lens<JsObj,JsValue>JsOptics.JsObjLenses. value(String key)lens that focus on a value located at a key in an object.fun.optic.Lens<JsObj,JsValue>JsOptics.JsObjLenses. value(JsPath path)lens that focus on a value located at a path in an object.Methods in jsonvalues with parameters of type JsValue 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.booleanJsArray. containsValue(JsValue el)booleanJsObj. containsValue(JsValue el)booleanJson. containsValue(JsValue element)Returns true if this json contains the given element in the first level.default booleanJson. equals(JsValue elem, JsArray.TYPE ARRAY_AS)default JsValueJsValue. ifNothing(JsValue value)returns the specified default value if nothing or the same this objectdefault JsValueJsValue. ifNull(JsValue value)returns the specified default value if null or the same this objectdefault booleanJsValue. isSameType(JsValue that)returns true if this elem and the given have the same typestatic 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 JsObjJsObj. of(String key, JsValue el)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5, String key6, JsValue el6)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5, String key6, JsValue el6, String key7, JsValue el7)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5, String key6, JsValue el6, String key7, JsValue el7, String key8, JsValue el8)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5, String key6, JsValue el6, String key7, JsValue el7, String key8, JsValue el8, String key9, JsValue el9)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5, String key6, JsValue el6, String key7, JsValue el7, String key8, JsValue el8, String key9, JsValue el9, String key10, JsValue el10)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5, String key6, JsValue el6, String key7, JsValue el7, String key8, JsValue el8, String key9, JsValue el9, String key10, JsValue el10, String key11, JsValue el11)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5, String key6, JsValue el6, String key7, JsValue el7, String key8, JsValue el8, String key9, JsValue el9, String key10, JsValue el10, String key11, JsValue el11, String key12, JsValue el12)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5, String key6, JsValue el6, String key7, JsValue el7, String key8, JsValue el8, String key9, JsValue el9, String key10, JsValue el10, String key11, JsValue el11, String key12, JsValue el12, String key13, JsValue el13)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5, String key6, JsValue el6, String key7, JsValue el7, String key8, JsValue el8, String key9, JsValue el9, String key10, JsValue el10, String key11, JsValue el11, String key12, JsValue el12, String key13, JsValue el13, String key14, JsValue el14)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5, String key6, JsValue el6, String key7, JsValue el7, String key8, JsValue el8, String key9, JsValue el9, String key10, JsValue el10, String key11, JsValue el11, String key12, JsValue el12, String key13, JsValue el13, String key14, JsValue el14, String key15, JsValue el15)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5, String key6, JsValue el6, String key7, JsValue el7, String key8, JsValue el8, String key9, JsValue el9, String key10, JsValue el10, String key11, JsValue el11, String key12, JsValue el12, String key13, JsValue el13, String key14, JsValue el14, String key15, JsValue el15, String key16, JsValue el16)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5, String key6, JsValue el6, String key7, JsValue el7, String key8, JsValue el8, String key9, JsValue el9, String key10, JsValue el10, String key11, JsValue el11, String key12, JsValue el12, String key13, JsValue el13, String key14, JsValue el14, String key15, JsValue el15, String key16, JsValue el16, String key17, JsValue el17)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5, String key6, JsValue el6, String key7, JsValue el7, String key8, JsValue el8, String key9, JsValue el9, String key10, JsValue el10, String key11, JsValue el11, String key12, JsValue el12, String key13, JsValue el13, String key14, JsValue el14, String key15, JsValue el15, String key16, JsValue el16, String key17, JsValue el17, String key18, JsValue el18)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5, String key6, JsValue el6, String key7, JsValue el7, String key8, JsValue el8, String key9, JsValue el9, String key10, JsValue el10, String key11, JsValue el11, String key12, JsValue el12, String key13, JsValue el13, String key14, JsValue el14, String key15, JsValue el15, String key16, JsValue el16, String key17, JsValue el17, String key18, JsValue el18, String key19, JsValue el19)static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5, String key6, JsValue el6, String key7, JsValue el7, String key8, JsValue el8, String key9, JsValue el9, String key10, JsValue el10, String key11, JsValue el11, String key12, JsValue el12, String key13, JsValue el13, String key14, JsValue el14, String key15, JsValue el15, String key16, JsValue el16, String key17, JsValue el17, String key18, JsValue el18, String key19, JsValue el19, String key20, JsValue el20)static JsObjJsObj. of(JsPath path, JsValue el)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13, JsPath path14, JsValue el14)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13, JsPath path14, JsValue el14, JsPath path15, JsValue el15)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13, JsPath path14, JsValue el14, JsPath path15, JsValue el15, JsPath path16, JsValue el16)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13, JsPath path14, JsValue el14, JsPath path15, JsValue el15, JsPath path16, JsValue el16, JsPath path17, JsValue el17)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13, JsPath path14, JsValue el14, JsPath path15, JsValue el15, JsPath path16, JsValue el16, JsPath path17, JsValue el17, JsPath path18, JsValue el18)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13, JsPath path14, JsValue el14, JsPath path15, JsValue el15, JsPath path16, JsValue el16, JsPath path17, JsValue el17, JsPath path18, JsValue el18, JsPath path19, JsValue el19)static JsObjJsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13, JsPath path14, JsValue el14, JsPath path15, JsValue el15, JsPath path16, JsValue el16, JsPath path17, JsValue el17, JsPath path18, JsValue el18, JsPath path19, JsValue el19, JsPath path20, JsValue el20)JsArrayJsArray. prepend(JsValue e, JsValue... others)Adds one or more elements, starting from the last, to the front of this array.JsArrayJsArray. set(int index, JsValue element)JsArrayJsArray. set(int index, JsValue value, JsValue padElement)JsArrayJsArray. set(JsPath path, JsValue element)JsArrayJsArray. set(JsPath path, JsValue value, JsValue padElement)JsObjJsObj. set(String key, JsValue value)Inserts the element at the key in this json, replacing any existing element.JsObjJsObj. set(JsPath path, JsValue element)JsObjJsObj. set(JsPath path, JsValue value, JsValue padElement)default TJson. set(JsPath path, JsValue element)Inserts the element at the path in this json, replacing any existing element and filling withJsNullempty indexes in arrays when necessary.TJson. set(JsPath path, JsValue element, JsValue padElement)Inserts the element at the path in this json, replacing any existing element and filling with padElement empty indexes in arrays when necessary.default longJson. times(JsValue e)default longJson. timesAll(JsValue e)Method parameters in jsonvalues with type arguments of type JsValue Modifier and Type Method Description JsArrayJsArray. filterAllKeys(BiPredicate<? super JsPath,? super JsValue> filter)JsObjJsObj. filterAllKeys(BiPredicate<? super JsPath,? super JsValue> filter)TJson. filterAllKeys(BiPredicate<? super JsPath,? super JsValue> filter)Filters all the keys of this json, removing those that don't ifPredicateElse the predicate.JsArrayJsArray. filterKeys(BiPredicate<? super String,? super JsValue> filter)JsObjJsObj. filterKeys(BiPredicate<? super String,? super JsValue> filter)JsArrayJsArray. mapAllKeys(BiFunction<? super JsPath,? super JsValue,String> fn)JsObjJsObj. mapAllKeys(BiFunction<? super JsPath,? super JsValue,String> fn)TJson. mapAllKeys(BiFunction<? super JsPath,? super JsValue,String> fn)Maps all the keys of this json.JsArrayJsArray. mapAllObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn)JsArrayJsArray. mapAllObjs(Function<? super JsObj,? extends JsValue> fn)JsObjJsObj. mapAllObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn)JsObjJsObj. mapAllObjs(Function<? super JsObj,? extends JsValue> fn)TJson. mapAllObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn)Maps all the jsons of this json.TJson. mapAllObjs(Function<? super JsObj,? extends JsValue> fn)Maps all the jsons of this json.JsArrayJsArray. mapAllValues(BiFunction<? super JsPath,? super JsPrimitive,? extends JsValue> fn)JsArrayJsArray. mapAllValues(Function<? super JsPrimitive,? extends JsValue> fn)JsObjJsObj. mapAllValues(BiFunction<? super JsPath,? super JsPrimitive,? extends JsValue> fn)JsObjJsObj. mapAllValues(Function<? super JsPrimitive,? extends JsValue> fn)TJson. mapAllValues(BiFunction<? super JsPath,? super JsPrimitive,? extends JsValue> fn)Maps all the values of this json.TJson. mapAllValues(Function<? super JsPrimitive,? extends JsValue> fn)Maps all the values of this json.JsArrayJsArray. mapKeys(BiFunction<? super String,? super JsValue,String> fn)JsObjJsObj. mapKeys(BiFunction<? super String,? super JsValue,String> fn)JsArrayJsArray. mapObjs(BiFunction<? super Integer,? super JsObj,JsValue> fn)JsArrayJsArray. mapObjs(Function<? super JsObj,? extends JsValue> fn)JsObjJsObj. mapObjs(BiFunction<? super String,? super JsObj,JsValue> fn)JsObjJsObj. mapObjs(Function<? super JsObj,? extends JsValue> fn)TJson. mapObjs(Function<? super JsObj,? extends JsValue> fn)Maps the jsons in the first level of this json.JsArrayJsArray. mapValues(BiFunction<? super Integer,? super JsPrimitive,? extends JsValue> fn)JsArrayJsArray. mapValues(Function<? super JsPrimitive,? extends JsValue> fn)JsObjJsObj. mapValues(BiFunction<? super String,? super JsPrimitive,? extends JsValue> fn)JsObjJsObj. mapValues(Function<? super JsPrimitive,? extends JsValue> fn)TJson. mapValues(Function<? super JsPrimitive,? extends JsValue> fn)Maps the values in the first level of this json.static JsArrayJsArray. ofIterable(Iterable<? extends JsValue> iterable)returns an immutable json array from an iterable of json elements -
Uses of JsValue in jsonvalues.gen
Method parameters in jsonvalues.gen with type arguments of type JsValue Modifier and Type Method Description static fun.gen.Gen<JsArray>JsArrayGen. arbitrary(fun.gen.Gen<? extends JsValue> gen, int size)static fun.gen.Gen<JsArray>JsArrayGen. arbitrary(fun.gen.Gen<? extends JsValue> gen, int minSize, int maxSize)static fun.gen.Gen<JsArray>JsArrayGen. biased(fun.gen.Gen<? extends JsValue> gen, int minSize, int maxSize)static JsObjGenJsObjGen. of(String key, fun.gen.Gen<? extends JsValue> gen)static JsObjGenJsObjGen. of(String key, fun.gen.Gen<? extends JsValue> gen, String key1, fun.gen.Gen<? extends JsValue> gen1)static JsObjGenJsObjGen. of(String key, fun.gen.Gen<? extends JsValue> gen, String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2)static JsObjGenJsObjGen. of(String key, fun.gen.Gen<? extends JsValue> gen, String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3)static JsObjGenJsObjGen. of(String key, fun.gen.Gen<? extends JsValue> gen, String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4)static JsObjGenJsObjGen. of(String key, fun.gen.Gen<? extends JsValue> gen, String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4, String key5, fun.gen.Gen<? extends JsValue> gen5)static JsObjGenJsObjGen. of(String key, fun.gen.Gen<? extends JsValue> gen, String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4, String key5, fun.gen.Gen<? extends JsValue> gen5, String key6, fun.gen.Gen<? extends JsValue> gen6)static JsObjGenJsObjGen. of(String key, fun.gen.Gen<? extends JsValue> gen, String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4, String key5, fun.gen.Gen<? extends JsValue> gen5, String key6, fun.gen.Gen<? extends JsValue> gen6, String key7, fun.gen.Gen<? extends JsValue> gen7)static JsObjGenJsObjGen. of(String key, fun.gen.Gen<? extends JsValue> gen, String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4, String key5, fun.gen.Gen<? extends JsValue> gen5, String key6, fun.gen.Gen<? extends JsValue> gen6, String key7, fun.gen.Gen<? extends JsValue> gen7, String key8, fun.gen.Gen<? extends JsValue> gen8)static JsObjGenJsObjGen. of(String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4, String key5, fun.gen.Gen<? extends JsValue> gen5, String key6, fun.gen.Gen<? extends JsValue> gen6, String key7, fun.gen.Gen<? extends JsValue> gen7, String key8, fun.gen.Gen<? extends JsValue> gen8, String key9, fun.gen.Gen<? extends JsValue> gen9, String key10, fun.gen.Gen<? extends JsValue> gen10)static JsObjGenJsObjGen. of(String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4, String key5, fun.gen.Gen<? extends JsValue> gen5, String key6, fun.gen.Gen<? extends JsValue> gen6, String key7, fun.gen.Gen<? extends JsValue> gen7, String key8, fun.gen.Gen<? extends JsValue> gen8, String key9, fun.gen.Gen<? extends JsValue> gen9, String key10, fun.gen.Gen<? extends JsValue> gen10, String key11, fun.gen.Gen<? extends JsValue> gen11)static JsObjGenJsObjGen. of(String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4, String key5, fun.gen.Gen<? extends JsValue> gen5, String key6, fun.gen.Gen<? extends JsValue> gen6, String key7, fun.gen.Gen<? extends JsValue> gen7, String key8, fun.gen.Gen<? extends JsValue> gen8, String key9, fun.gen.Gen<? extends JsValue> gen9, String key10, fun.gen.Gen<? extends JsValue> gen10, String key11, fun.gen.Gen<? extends JsValue> gen11, String key12, fun.gen.Gen<? extends JsValue> gen12)static JsObjGenJsObjGen. of(String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4, String key5, fun.gen.Gen<? extends JsValue> gen5, String key6, fun.gen.Gen<? extends JsValue> gen6, String key7, fun.gen.Gen<? extends JsValue> gen7, String key8, fun.gen.Gen<? extends JsValue> gen8, String key9, fun.gen.Gen<? extends JsValue> gen9, String key10, fun.gen.Gen<? extends JsValue> gen10, String key11, fun.gen.Gen<? extends JsValue> gen11, String key12, fun.gen.Gen<? extends JsValue> gen12, String key13, fun.gen.Gen<? extends JsValue> gen13)static JsObjGenJsObjGen. of(String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4, String key5, fun.gen.Gen<? extends JsValue> gen5, String key6, fun.gen.Gen<? extends JsValue> gen6, String key7, fun.gen.Gen<? extends JsValue> gen7, String key8, fun.gen.Gen<? extends JsValue> gen8, String key9, fun.gen.Gen<? extends JsValue> gen9, String key10, fun.gen.Gen<? extends JsValue> gen10, String key11, fun.gen.Gen<? extends JsValue> gen11, String key12, fun.gen.Gen<? extends JsValue> gen12, String key13, fun.gen.Gen<? extends JsValue> gen13, String key14, fun.gen.Gen<? extends JsValue> gen14)static JsObjGenJsObjGen. of(String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4, String key5, fun.gen.Gen<? extends JsValue> gen5, String key6, fun.gen.Gen<? extends JsValue> gen6, String key7, fun.gen.Gen<? extends JsValue> gen7, String key8, fun.gen.Gen<? extends JsValue> gen8, String key9, fun.gen.Gen<? extends JsValue> gen9, String key10, fun.gen.Gen<? extends JsValue> gen10, String key11, fun.gen.Gen<? extends JsValue> gen11, String key12, fun.gen.Gen<? extends JsValue> gen12, String key13, fun.gen.Gen<? extends JsValue> gen13, String key14, fun.gen.Gen<? extends JsValue> gen14, String key15, fun.gen.Gen<? extends JsValue> gen15)static JsObjGenJsObjGen. of(String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4, String key5, fun.gen.Gen<? extends JsValue> gen5, String key6, fun.gen.Gen<? extends JsValue> gen6, String key7, fun.gen.Gen<? extends JsValue> gen7, String key8, fun.gen.Gen<? extends JsValue> gen8, String key9, fun.gen.Gen<? extends JsValue> gen9, String key10, fun.gen.Gen<? extends JsValue> gen10, String key11, fun.gen.Gen<? extends JsValue> gen11, String key12, fun.gen.Gen<? extends JsValue> gen12, String key13, fun.gen.Gen<? extends JsValue> gen13, String key14, fun.gen.Gen<? extends JsValue> gen14, String key15, fun.gen.Gen<? extends JsValue> gen15, String key16, fun.gen.Gen<? extends JsValue> gen16)static JsObjGenJsObjGen. of(String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4, String key5, fun.gen.Gen<? extends JsValue> gen5, String key6, fun.gen.Gen<? extends JsValue> gen6, String key7, fun.gen.Gen<? extends JsValue> gen7, String key8, fun.gen.Gen<? extends JsValue> gen8, String key9, fun.gen.Gen<? extends JsValue> gen9, String key10, fun.gen.Gen<? extends JsValue> gen10, String key11, fun.gen.Gen<? extends JsValue> gen11, String key12, fun.gen.Gen<? extends JsValue> gen12, String key13, fun.gen.Gen<? extends JsValue> gen13, String key14, fun.gen.Gen<? extends JsValue> gen14, String key15, fun.gen.Gen<? extends JsValue> gen15, String key16, fun.gen.Gen<? extends JsValue> gen16, String key17, fun.gen.Gen<? extends JsValue> gen17)static JsObjGenJsObjGen. of(String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4, String key5, fun.gen.Gen<? extends JsValue> gen5, String key6, fun.gen.Gen<? extends JsValue> gen6, String key7, fun.gen.Gen<? extends JsValue> gen7, String key8, fun.gen.Gen<? extends JsValue> gen8, String key9, fun.gen.Gen<? extends JsValue> gen9, String key10, fun.gen.Gen<? extends JsValue> gen10, String key11, fun.gen.Gen<? extends JsValue> gen11, String key12, fun.gen.Gen<? extends JsValue> gen12, String key13, fun.gen.Gen<? extends JsValue> gen13, String key14, fun.gen.Gen<? extends JsValue> gen14, String key15, fun.gen.Gen<? extends JsValue> gen15, String key16, fun.gen.Gen<? extends JsValue> gen16, String key17, fun.gen.Gen<? extends JsValue> gen17, String key18, fun.gen.Gen<? extends JsValue> gen18)static JsObjGenJsObjGen. of(String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4, String key5, fun.gen.Gen<? extends JsValue> gen5, String key6, fun.gen.Gen<? extends JsValue> gen6, String key7, fun.gen.Gen<? extends JsValue> gen7, String key8, fun.gen.Gen<? extends JsValue> gen8, String key9, fun.gen.Gen<? extends JsValue> gen9, String key10, fun.gen.Gen<? extends JsValue> gen10, String key11, fun.gen.Gen<? extends JsValue> gen11, String key12, fun.gen.Gen<? extends JsValue> gen12, String key13, fun.gen.Gen<? extends JsValue> gen13, String key14, fun.gen.Gen<? extends JsValue> gen14, String key15, fun.gen.Gen<? extends JsValue> gen15, String key16, fun.gen.Gen<? extends JsValue> gen16, String key17, fun.gen.Gen<? extends JsValue> gen17, String key18, fun.gen.Gen<? extends JsValue> gen18, String key19, fun.gen.Gen<? extends JsValue> gen19)static JsObjGenJsObjGen. of(String key1, fun.gen.Gen<? extends JsValue> gen1, String key2, fun.gen.Gen<? extends JsValue> gen2, String key3, fun.gen.Gen<? extends JsValue> gen3, String key4, fun.gen.Gen<? extends JsValue> gen4, String key5, fun.gen.Gen<? extends JsValue> gen5, String key6, fun.gen.Gen<? extends JsValue> gen6, String key7, fun.gen.Gen<? extends JsValue> gen7, String key8, fun.gen.Gen<? extends JsValue> gen8, String key9, fun.gen.Gen<? extends JsValue> gen9, String key10, fun.gen.Gen<? extends JsValue> gen10, String key11, fun.gen.Gen<? extends JsValue> gen11, String key12, fun.gen.Gen<? extends JsValue> gen12, String key13, fun.gen.Gen<? extends JsValue> gen13, String key14, fun.gen.Gen<? extends JsValue> gen14, String key15, fun.gen.Gen<? extends JsValue> gen15, String key16, fun.gen.Gen<? extends JsValue> gen16, String key17, fun.gen.Gen<? extends JsValue> gen17, String key18, fun.gen.Gen<? extends JsValue> gen18, String key19, fun.gen.Gen<? extends JsValue> gen19, String key20, fun.gen.Gen<? extends JsValue> gen20)static fun.gen.Gen<JsArray>JsTupleGen. of(fun.gen.Gen<? extends JsValue> gen, fun.gen.Gen<? extends JsValue>... others)Returns a tuple generator.JsObjGenJsObjGen. set(String key, fun.gen.Gen<? extends JsValue> gen)Returns a brand new JsObj generator with the same key-generators pairs that this instance plus the specified by the params key and gen -
Uses of JsValue in jsonvalues.spec
Fields in jsonvalues.spec declared as JsValue Modifier and Type Field Description JsValueSpecError. valueMethods in jsonvalues.spec with type parameters of type JsValue Modifier and Type Method Description static <O extends JsValue>
JsSpecJsSpecs. oneOf(List<O> cons)returns an enum specMethods in jsonvalues.spec with parameters of type JsValue Modifier and Type Method Description static JsSpecJsSpecs. cons(JsValue value)a required and non nullable spec that specifies a constantSet<SpecError>JsArrayOfJsObjSpec. test(JsPath parentPath, JsValue value)Set<SpecError>JsObjSpec. test(JsPath parentPath, JsValue value)Set<SpecError>JsSpec. test(JsPath parentPath, JsValue value)verify if the given value satisfy this spec.Set<SpecError>JsTupleSpec. test(JsPath parentPath, JsValue value)Method parameters in jsonvalues.spec with type arguments of type JsValue Modifier and Type Method Description static JsSpecJsSpecs. any(Predicate<JsValue> predicate)returns a spec that conforms any value that is evaluated to true on the predicate.static JsArraySpecJsSpecs. array(Predicate<JsValue> predicate)non-nullable array, where each element of the array satisfies the given predicate
-