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 JsValue
JsArraySpecParser. nullOrArray(com.dslplatform.json.JsonReader<?> reader)
JsValue
JsSpecParser. parse(com.dslplatform.json.JsonReader<?> reader)
Method parameters in com.dslplatform.json with type arguments of type JsValue Modifier and Type Method Description JsSpecParser
JsSpecParsers. ofArrayOfBoolSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)
JsSpecParser
JsSpecParsers. ofArrayOfDecimalEachSuchThat(Function<BigDecimal,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)
JsSpecParser
JsSpecParsers. ofArrayOfDecimalSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)
JsSpecParser
JsSpecParsers. ofArrayOfIntEachSuchThat(IntFunction<Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)
JsSpecParser
JsSpecParsers. ofArrayOfIntegralEachSuchThat(Function<BigInteger,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)
JsSpecParser
JsSpecParsers. ofArrayOfIntegralSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)
JsSpecParser
JsSpecParsers. ofArrayOfIntSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)
JsSpecParser
JsSpecParsers. ofArrayOfLongEachSuchThat(LongFunction<Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)
JsSpecParser
JsSpecParsers. ofArrayOfLongSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)
JsSpecParser
JsSpecParsers. ofArrayOfNumberEachSuchThat(Function<JsNumber,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)
JsSpecParser
JsSpecParsers. ofArrayOfNumberSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)
JsSpecParser
JsSpecParsers. ofArrayOfObjEachSuchThat(Function<JsObj,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)
JsSpecParser
JsSpecParsers. ofArrayOfObjSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)
JsSpecParser
JsSpecParsers. ofArrayOfStrEachSuchThat(Function<String,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)
JsSpecParser
JsSpecParsers. ofArrayOfStrSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)
JsSpecParser
JsSpecParsers. ofArrayOfValueEachSuchThat(Function<JsValue,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)
JsSpecParser
JsSpecParsers. ofArrayOfValueEachSuchThat(Function<JsValue,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)
JsSpecParser
JsSpecParsers. ofArrayOfValueSuchThat(Function<JsArray,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable)
JsSpecParser
JsSpecParsers. ofBinarySuchThat(Function<byte[],Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)
JsSpecParser
JsSpecParsers. ofDecimalSuchThat(Function<BigDecimal,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)
JsSpecParser
JsSpecParsers. ofInstantSuchThat(Function<Instant,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)
JsSpecParser
JsSpecParsers. ofIntegralSuchThat(Function<BigInteger,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)
JsSpecParser
JsSpecParsers. ofIntSuchThat(IntFunction<Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)
JsSpecParser
JsSpecParsers. ofLongSuchThat(LongFunction<Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)
JsSpecParser
JsSpecParsers. ofNumberSuchThat(Function<JsNumber,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)
JsSpecParser
JsSpecParsers. ofObjSuchThat(Function<JsObj,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)
JsSpecParser
JsSpecParsers. ofStrSuchThat(Function<String,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)
JsSpecParser
JsSpecParsers. ofValueSuchThat(Function<JsValue,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate)
JsSpecParser
JsSpecParsers. 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 interface
Json<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 class
JsArray
Represents a json array, which is an ordered list of elements.class
JsBigDec
Represents an immutable json number of type BigDecimal.class
JsBigInt
Represents an immutable json number of type BigInteger.class
JsBinary
Represents an array of bytes.class
JsBool
Represents an immutable json boolean.class
JsDouble
Represents an immutable json number of type double.class
JsInstant
Represents an immutable instant.class
JsInt
Represents an immutable json number of type integer.class
JsLong
Represents an immutable json number of type long.class
JsNothing
It's a special json element that represents 'nothing'.class
JsNull
Represents null, which a valid json value.class
JsNumber
Represents an immutable json number.class
JsObj
Represents a json object, which is an unordered set of name/element pairs.class
JsPrimitive
class
JsStr
Represents 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. prism
prism between the sum type JsValue and JsArraystatic fun.optic.Prism<JsValue,BigDecimal>
JsBigDec. prism
prism between the sum type JsValue and JsBigDecstatic fun.optic.Prism<JsValue,BigInteger>
JsBigInt. prism
static fun.optic.Prism<JsValue,byte[]>
JsBinary. prism
prism between the sum type JsValue and JsBinarystatic fun.optic.Prism<JsValue,Boolean>
JsBool. prism
prism between the sum type JsValue and JsBoolstatic fun.optic.Prism<JsValue,Double>
JsDouble. prism
prism between the sum type JsValue and JsDoublestatic fun.optic.Prism<JsValue,Instant>
JsInstant. prism
prism between the sum type JsValue and JsInstantstatic fun.optic.Prism<JsValue,Integer>
JsInt. prism
prism between the sum type JsValue and JsIntstatic fun.optic.Prism<JsValue,Long>
JsLong. prism
prism between the sum type JsValue and JsLongstatic fun.optic.Prism<JsValue,JsObj>
JsObj. prism
prism between the sum type JsValue and JsObjstatic fun.optic.Prism<JsValue,String>
JsStr. prism
prism between the sum type JsValue and JsStrMethods in jsonvalues that return JsValue Modifier and Type Method Description JsValue
JsArray. get(int i)
returns the element located at the specified index or JsNothing if it doesn't exist.JsValue
JsArray. get(JsPath path)
JsValue
JsObj. get(String key)
JsValue
JsObj. get(JsPath path)
JsValue
Json. get(JsPath path)
Returns the element located at the given path orJsNothing
if it doesn't exist.JsValue
JsArray. head()
Returns the first element of this array.default JsValue
JsValue. ifNothing(JsValue value)
returns the specified default value if nothing or the same this objectdefault JsValue
JsValue. ifNull(JsValue value)
returns the specified default value if null or the same this objectJsValue
JsArray. 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 JsArray
JsArray. append(JsValue e, JsValue... others)
Adds one or more elements, starting from the first, to the back of this array.boolean
JsArray. containsValue(JsValue el)
boolean
JsObj. containsValue(JsValue el)
boolean
Json. containsValue(JsValue element)
Returns true if this json contains the given element in the first level.default boolean
Json. equals(JsValue elem, JsArray.TYPE ARRAY_AS)
default JsValue
JsValue. ifNothing(JsValue value)
returns the specified default value if nothing or the same this objectdefault JsValue
JsValue. ifNull(JsValue value)
returns the specified default value if null or the same this objectdefault boolean
JsValue. isSameType(JsValue that)
returns true if this elem and the given have the same typestatic 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 JsObj
JsObj. of(String key, JsValue el)
static JsObj
JsObj. of(String key1, JsValue el1, String key2, JsValue el2)
static JsObj
JsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3)
static JsObj
JsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4)
static JsObj
JsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5)
static JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. of(JsPath path, JsValue el)
static JsObj
JsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2)
static JsObj
JsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3)
static JsObj
JsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4)
static JsObj
JsObj. of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5)
static JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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 JsObj
JsObj. 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)
JsArray
JsArray. prepend(JsValue e, JsValue... others)
Adds one or more elements, starting from the last, to the front of this array.JsArray
JsArray. set(int index, JsValue element)
JsArray
JsArray. set(int index, JsValue value, JsValue padElement)
JsArray
JsArray. set(JsPath path, JsValue element)
JsArray
JsArray. set(JsPath path, JsValue value, JsValue padElement)
JsObj
JsObj. set(String key, JsValue value)
Inserts the element at the key in this json, replacing any existing element.JsObj
JsObj. set(JsPath path, JsValue element)
JsObj
JsObj. set(JsPath path, JsValue value, JsValue padElement)
default T
Json. set(JsPath path, JsValue element)
Inserts the element at the path in this json, replacing any existing element and filling withJsNull
empty indexes in arrays when necessary.T
Json. 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 long
Json. times(JsValue e)
default long
Json. timesAll(JsValue e)
Method parameters in jsonvalues with type arguments of type JsValue Modifier and Type Method Description JsArray
JsArray. filterAllKeys(BiPredicate<? super JsPath,? super JsValue> filter)
JsObj
JsObj. filterAllKeys(BiPredicate<? super JsPath,? super JsValue> filter)
T
Json. filterAllKeys(BiPredicate<? super JsPath,? super JsValue> filter)
Filters all the keys of this json, removing those that don't ifPredicateElse the predicate.JsArray
JsArray. filterKeys(BiPredicate<? super String,? super JsValue> filter)
JsObj
JsObj. filterKeys(BiPredicate<? super String,? super JsValue> filter)
JsArray
JsArray. mapAllKeys(BiFunction<? super JsPath,? super JsValue,String> fn)
JsObj
JsObj. mapAllKeys(BiFunction<? super JsPath,? super JsValue,String> fn)
T
Json. mapAllKeys(BiFunction<? super JsPath,? super JsValue,String> fn)
Maps all the keys of this json.JsArray
JsArray. mapAllObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn)
JsArray
JsArray. mapAllObjs(Function<? super JsObj,? extends JsValue> fn)
JsObj
JsObj. mapAllObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn)
JsObj
JsObj. mapAllObjs(Function<? super JsObj,? extends JsValue> fn)
T
Json. mapAllObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn)
Maps all the jsons of this json.T
Json. mapAllObjs(Function<? super JsObj,? extends JsValue> fn)
Maps all the jsons of this json.JsArray
JsArray. mapAllValues(BiFunction<? super JsPath,? super JsPrimitive,? extends JsValue> fn)
JsArray
JsArray. mapAllValues(Function<? super JsPrimitive,? extends JsValue> fn)
JsObj
JsObj. mapAllValues(BiFunction<? super JsPath,? super JsPrimitive,? extends JsValue> fn)
JsObj
JsObj. mapAllValues(Function<? super JsPrimitive,? extends JsValue> fn)
T
Json. mapAllValues(BiFunction<? super JsPath,? super JsPrimitive,? extends JsValue> fn)
Maps all the values of this json.T
Json. mapAllValues(Function<? super JsPrimitive,? extends JsValue> fn)
Maps all the values of this json.JsArray
JsArray. mapKeys(BiFunction<? super String,? super JsValue,String> fn)
JsObj
JsObj. mapKeys(BiFunction<? super String,? super JsValue,String> fn)
JsArray
JsArray. mapObjs(BiFunction<? super Integer,? super JsObj,JsValue> fn)
JsArray
JsArray. mapObjs(Function<? super JsObj,? extends JsValue> fn)
JsObj
JsObj. mapObjs(BiFunction<? super String,? super JsObj,JsValue> fn)
JsObj
JsObj. mapObjs(Function<? super JsObj,? extends JsValue> fn)
T
Json. mapObjs(Function<? super JsObj,? extends JsValue> fn)
Maps the jsons in the first level of this json.JsArray
JsArray. mapValues(BiFunction<? super Integer,? super JsPrimitive,? extends JsValue> fn)
JsArray
JsArray. mapValues(Function<? super JsPrimitive,? extends JsValue> fn)
JsObj
JsObj. mapValues(BiFunction<? super String,? super JsPrimitive,? extends JsValue> fn)
JsObj
JsObj. mapValues(Function<? super JsPrimitive,? extends JsValue> fn)
T
Json. mapValues(Function<? super JsPrimitive,? extends JsValue> fn)
Maps the values in the first level of this json.static JsArray
JsArray. 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 JsObjGen
JsObjGen. of(String key, fun.gen.Gen<? extends JsValue> gen)
static JsObjGen
JsObjGen. of(String key, fun.gen.Gen<? extends JsValue> gen, String key1, fun.gen.Gen<? extends JsValue> gen1)
static JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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 JsObjGen
JsObjGen. 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.JsObjGen
JsObjGen. 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 JsValue
SpecError. value
Methods 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 JsSpec
JsSpecs. 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 JsSpec
JsSpecs. any(Predicate<JsValue> predicate)
returns a spec that conforms any value that is evaluated to true on the predicate.static JsArraySpec
JsSpecs. array(Predicate<JsValue> predicate)
non-nullable array, where each element of the array satisfies the given predicate
-