Uses of Class
jsonvalues.JsObj
-
Packages that use JsObj 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 JsObj in com.dslplatform.json
Methods in com.dslplatform.json that return JsObj Modifier and Type Method Description JsObj
MyDslJson. parseToJsObj(byte[] bytes, JsSpecParser parser)
JsObj
MyDslJson. parseToJsObj(InputStream is, JsSpecParser parser)
Method parameters in com.dslplatform.json with type arguments of type JsObj Modifier and Type Method Description JsSpecParser
JsSpecParsers. ofArrayOfObjEachSuchThat(Function<JsObj,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p, boolean nullable, int min, int max)
JsSpecParser
JsSpecParsers. ofArrayOfObjSpec(List<String> required, Map<String,JsSpecParser> parsers, Predicate<JsObj> predicate, boolean strict, boolean nullable, int min, int max)
JsSpecParser
JsSpecParsers. ofObjSpec(List<String> required, Map<String,JsSpecParser> keyDeserializers, Predicate<JsObj> predicate, boolean nullable, boolean strict)
JsSpecParser
JsSpecParsers. ofObjSuchThat(Function<JsObj,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate, boolean nullable)
-
Uses of JsObj in jsonvalues
Fields in jsonvalues declared as JsObj Modifier and Type Field Description static JsObj
JsObj. EMPTY
Fields in jsonvalues with type parameters of type JsObj Modifier and Type Field Description static fun.optic.Prism<JsValue,JsObj>
JsObj. prism
prism between the sum type JsValue and JsObjMethods in jsonvalues that return JsObj Modifier and Type Method Description JsObj
JsObj. delete(String key)
JsObj
JsObj. delete(JsPath path)
static JsObj
JsObj. empty()
JsObj
JsObj. filterAllKeys(BiPredicate<? super JsPath,? super JsValue> filter)
JsObj
JsObj. filterAllKeys(Predicate<? super String> filter)
JsObj
JsObj. filterAllObjs(BiPredicate<? super JsPath,? super JsObj> filter)
JsObj
JsObj. filterAllObjs(Predicate<? super JsObj> filter)
JsObj
JsObj. filterAllValues(BiPredicate<? super JsPath,? super JsPrimitive> filter)
JsObj
JsObj. filterAllValues(Predicate<? super JsPrimitive> filter)
JsObj
JsObj. filterKeys(BiPredicate<? super String,? super JsValue> filter)
JsObj
JsObj. filterKeys(Predicate<? super String> filter)
JsObj
JsObj. filterObjs(BiPredicate<? super String,? super JsObj> filter)
JsObj
JsObj. filterObjs(Predicate<? super JsObj> filter)
JsObj
JsObj. filterValues(BiPredicate<? super String,? super JsPrimitive> filter)
JsObj
JsObj. filterValues(Predicate<? super JsPrimitive> filter)
JsObj
JsArray. getObj(int index)
Returns the object located at the given index or null if it doesn't exist or it's not a json object.JsObj
JsArray. getObj(int index, Supplier<JsObj> orElse)
Returns the object located at the given index or the default value provided if it doesn't exist or it's not a json object.JsObj
JsObj. getObj(String key)
Returns the json object located at the given key or null if it doesn't exist or it's not an object.JsObj
JsObj. getObj(String key, Supplier<JsObj> orElse)
Returns the json object located at the given key or the default value provided if it doesn't exist or it's not an object.default JsObj
Json. getObj(JsPath path)
Returns the object located at the given path or null if it doesn't exist or it's not an object.default JsObj
Json. getObj(JsPath path, Supplier<JsObj> orElse)
Returns the object located at the given path or the default value provided if it doesn't exist or it's not an object.JsObj
JsObj. intersection(JsObj that, JsArray.TYPE ARRAY_AS)
this.intersection(that, SET)
returns an array with the elements that exist in boththis
andthat
this.intersection(that, MULTISET)
returns an array with the elements that exist in boththis
andthat
, being duplicates allowed.JsObj
JsObj. intersectionAll(JsObj that, JsArray.TYPE ARRAY_AS)
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.JsObj
JsObj. mapAllKeys(BiFunction<? super JsPath,? super JsValue,String> fn)
JsObj
JsObj. mapAllKeys(Function<? super String,String> fn)
JsObj
JsObj. mapAllObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn)
JsObj
JsObj. mapAllObjs(Function<? super JsObj,? extends JsValue> fn)
JsObj
JsObj. mapAllValues(BiFunction<? super JsPath,? super JsPrimitive,? extends JsValue> fn)
JsObj
JsObj. mapAllValues(Function<? super JsPrimitive,? extends JsValue> fn)
JsObj
JsObj. mapKeys(BiFunction<? super String,? super JsValue,String> fn)
JsObj
JsObj. mapKeys(Function<? super String,String> fn)
JsObj
JsObj. mapObjs(BiFunction<? super String,? super JsObj,JsValue> fn)
JsObj
JsObj. mapObjs(Function<? super JsObj,? extends JsValue> fn)
JsObj
JsObj. mapValues(BiFunction<? super String,? super JsPrimitive,? extends JsValue> fn)
JsObj
JsObj. mapValues(Function<? super JsPrimitive,? extends JsValue> fn)
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)
static JsObj
JsObj. parse(String str)
Tries to parse the string into an immutable object.static JsObj
JsObj. parseYaml(String str)
Tries to parse a YAML string into an immutable object.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 JsObj
JsValue. toJsObj()
Returns this JsValue as a JsObjJsObj
JsObj. union(JsObj that)
returnsthis
json object plus those pairs from the given json objectthat
which keys don't exist inthis
.JsObj
JsObj. unionAll(JsObj that, JsArray.TYPE ARRAY_AS)
behaves like theunion(JsObj)
but, for those keys that exit in boththis
andthat
json objects, which associated elements are **containers of the same type**, the result is their union.Methods in jsonvalues that return types with arguments of type JsObj Modifier and Type Method Description fun.optic.Lens<JsObj,JsArray>
JsOptics.JsObjLenses. array(String key)
lens that focus on a json array located at a key in an object.fun.optic.Lens<JsObj,JsArray>
JsOptics.JsObjLenses. array(JsPath path)
lens that focus on a json object located at a path in an object.fun.optic.Option<JsObj,JsArray>
JsOptics.JsObjOptional. array(String key)
optional that focus on the array located at a key in an objectfun.optic.Option<JsObj,JsArray>
JsOptics.JsObjOptional. array(JsPath path)
optional that focus on the array located at a path in an objectfun.optic.Lens<JsObj,byte[]>
JsOptics.JsObjLenses. binary(String key)
lens that focus on an array of bytes located at a key in an object.fun.optic.Lens<JsObj,byte[]>
JsOptics.JsObjLenses. binary(JsPath path)
lens that focus on an array of bytes located at a path in an object.fun.optic.Option<JsObj,byte[]>
JsOptics.JsObjOptional. binary(String key)
optional that focus on the array of bytes located at a key in an objectfun.optic.Option<JsObj,byte[]>
JsOptics.JsObjOptional. binary(JsPath path)
optional that focus on the array of bytes located at a path in an objectfun.optic.Lens<JsObj,Boolean>
JsOptics.JsObjLenses. bool(String key)
lens that focus on a boolean located at a path in an object.fun.optic.Lens<JsObj,Boolean>
JsOptics.JsObjLenses. bool(JsPath path)
lens that focus on a boolean located at a path in an object.fun.optic.Option<JsObj,Boolean>
JsOptics.JsObjOptional. bool(String key)
optional that focus on the boolean located at a key in an objectfun.optic.Option<JsObj,Boolean>
JsOptics.JsObjOptional. bool(JsPath path)
optional that focus on the boolean located at a path in an objectfun.optic.Lens<JsObj,BigDecimal>
JsOptics.JsObjLenses. decimalNum(String key)
lens that focus on a decimal number located at a key in an object.fun.optic.Lens<JsObj,BigDecimal>
JsOptics.JsObjLenses. decimalNum(JsPath path)
lens that focus on a decimal number located at a path in an object.fun.optic.Option<JsObj,BigDecimal>
JsOptics.JsObjOptional. decimalNum(String key)
optional that focus on the decimal number located at a key in an objectfun.optic.Option<JsObj,BigDecimal>
JsOptics.JsObjOptional. decimalNum(JsPath path)
optional that focus on the decimal number located at a path in an objectfun.optic.Lens<JsObj,Double>
JsOptics.JsObjLenses. doubleNum(String key)
lens that focus on a double number located at a key in an object.fun.optic.Lens<JsObj,Double>
JsOptics.JsObjLenses. doubleNum(JsPath path)
lens that focus on a double number located at a path in an object.fun.optic.Option<JsObj,Double>
JsOptics.JsObjOptional. doubleNum(String key)
optional that focus on the double number located at a key in an objectfun.optic.Option<JsObj,Double>
JsOptics.JsObjOptional. doubleNum(JsPath path)
optional that focus on the double number located at a path in an objectfun.optic.Lens<JsObj,Instant>
JsOptics.JsObjLenses. instant(String key)
lens that focus on an instant located at a key in an object.fun.optic.Lens<JsObj,Instant>
JsOptics.JsObjLenses. instant(JsPath path)
lens that focus on an instant located at a path in an object.fun.optic.Option<JsObj,Instant>
JsOptics.JsObjOptional. instant(String key)
optional that focus on the instant located at a key in an objectfun.optic.Option<JsObj,Instant>
JsOptics.JsObjOptional. instant(JsPath path)
optional that focus on the instant located at a path in an objectfun.optic.Lens<JsObj,BigInteger>
JsOptics.JsObjLenses. integralNum(String key)
lens that focus on a integral number located at a key in an object.fun.optic.Lens<JsObj,BigInteger>
JsOptics.JsObjLenses. integralNum(JsPath path)
lens that focus on a integral number located at a path in an object.fun.optic.Option<JsObj,BigInteger>
JsOptics.JsObjOptional. integralNum(String key)
optional that focus on the bigint number located at a path in an objectfun.optic.Option<JsObj,BigInteger>
JsOptics.JsObjOptional. integralNum(JsPath path)
optional that focus on the integral number located at a path in an objectfun.optic.Lens<JsObj,Integer>
JsOptics.JsObjLenses. intNum(String key)
lens that focus on a integer number located at a key in an object.fun.optic.Lens<JsObj,Integer>
JsOptics.JsObjLenses. intNum(JsPath path)
lens that focus on a integer number located at a path in an object.fun.optic.Option<JsObj,Integer>
JsOptics.JsObjOptional. intNum(String key)
optional that focus on the integer number located at a key in an objectfun.optic.Option<JsObj,Integer>
JsOptics.JsObjOptional. intNum(JsPath path)
optional that focus on the integer number located at a path in an objectfun.optic.Lens<JsObj,Long>
JsOptics.JsObjLenses. longNum(String key)
lens that focus on a long number located at a key in an object.fun.optic.Lens<JsObj,Long>
JsOptics.JsObjLenses. longNum(JsPath path)
lens that focus on a long number located at a path in an object.fun.optic.Option<JsObj,Long>
JsOptics.JsObjOptional. longNum(String key)
optional that focus on the long number located at a key in an objectfun.optic.Option<JsObj,Long>
JsOptics.JsObjOptional. longNum(JsPath path)
optional that focus on the long number located at a path in an objectfun.optic.Lens<JsArray,JsObj>
JsOptics.JsArrayLenses. obj(int index)
lens that focus on the json object located at an index in an arrayfun.optic.Lens<JsArray,JsObj>
JsOptics.JsArrayLenses. obj(JsPath path)
lens that focus on the json object located at a path in an arrayfun.optic.Option<JsArray,JsObj>
JsOptics.JsArrayOptionals. obj(int index)
optional that focus on the json object located at an index in an arrayfun.optic.Option<JsArray,JsObj>
JsOptics.JsArrayOptionals. obj(JsPath path)
optional that focus on the object located at a path in an arrayfun.optic.Lens<JsObj,JsObj>
JsOptics.JsObjLenses. obj(String key)
lens that focus on a json object located at a key in an object.fun.optic.Lens<JsObj,JsObj>
JsOptics.JsObjLenses. obj(String key)
lens that focus on a json object located at a key in an object.fun.optic.Lens<JsObj,JsObj>
JsOptics.JsObjLenses. obj(JsPath path)
lens that focus on a json object located at a path in an object.fun.optic.Lens<JsObj,JsObj>
JsOptics.JsObjLenses. obj(JsPath path)
lens that focus on a json object located at a path in an object.fun.optic.Option<JsObj,JsObj>
JsOptics.JsObjOptional. obj(String key)
optional that focus on the object located at a key in an objectfun.optic.Option<JsObj,JsObj>
JsOptics.JsObjOptional. obj(String key)
optional that focus on the object located at a key in an objectfun.optic.Option<JsObj,JsObj>
JsOptics.JsObjOptional. obj(JsPath path)
optional that focus on the object located at a path in an objectfun.optic.Option<JsObj,JsObj>
JsOptics.JsObjOptional. obj(JsPath path)
optional that focus on the object located at a path in an objectfun.optic.Lens<JsObj,String>
JsOptics.JsObjLenses. str(String key)
lens that focus on a string located at a key in an object.fun.optic.Lens<JsObj,String>
JsOptics.JsObjLenses. str(JsPath path)
lens that focus on a string located at a path in an object.fun.optic.Option<JsObj,String>
JsOptics.JsObjOptional. str(String key)
optional that focus on the string located at a key in an objectfun.optic.Option<JsObj,String>
JsOptics.JsObjOptional. str(JsPath path)
optional that focus on the string located at a path in an objectfun.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 JsObj Modifier and Type Method Description boolean
JsObj. equals(JsObj that, JsArray.TYPE ARRAY_AS)
return true if this obj is equal to the given as a parameter.JsObj
JsObj. intersection(JsObj that, JsArray.TYPE ARRAY_AS)
this.intersection(that, SET)
returns an array with the elements that exist in boththis
andthat
this.intersection(that, MULTISET)
returns an array with the elements that exist in boththis
andthat
, being duplicates allowed.JsObj
JsObj. intersectionAll(JsObj that, JsArray.TYPE ARRAY_AS)
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.JsObj
JsObj. union(JsObj that)
returnsthis
json object plus those pairs from the given json objectthat
which keys don't exist inthis
.JsObj
JsObj. unionAll(JsObj that, JsArray.TYPE ARRAY_AS)
behaves like theunion(JsObj)
but, for those keys that exit in boththis
andthat
json objects, which associated elements are **containers of the same type**, the result is their union.Method parameters in jsonvalues with type arguments of type JsObj Modifier and Type Method Description JsArray
JsArray. filterAllObjs(BiPredicate<? super JsPath,? super JsObj> filter)
JsArray
JsArray. filterAllObjs(Predicate<? super JsObj> filter)
JsObj
JsObj. filterAllObjs(BiPredicate<? super JsPath,? super JsObj> filter)
JsObj
JsObj. filterAllObjs(Predicate<? super JsObj> filter)
T
Json. filterAllObjs(BiPredicate<? super JsPath,? super JsObj> filter)
Filters all the pair of jsons of this json, removing those that don't ifPredicateElse the predicate.T
Json. filterAllObjs(Predicate<? super JsObj> filter)
Filters all the pair of jsons of this json, removing those that don't ifPredicateElse the predicate.JsArray
JsArray. filterObjs(BiPredicate<? super Integer,? super JsObj> filter)
JsArray
JsArray. filterObjs(Predicate<? super JsObj> filter)
JsObj
JsObj. filterObjs(BiPredicate<? super String,? super JsObj> filter)
JsObj
JsObj. filterObjs(Predicate<? super JsObj> filter)
T
Json. filterObjs(Predicate<? super JsObj> filter)
Filters the pair of jsons in the first level of this json, removing those that don't ifPredicateElse the predicate.JsObj
JsArray. getObj(int index, Supplier<JsObj> orElse)
Returns the object located at the given index or the default value provided if it doesn't exist or it's not a json object.JsObj
JsObj. getObj(String key, Supplier<JsObj> orElse)
Returns the json object located at the given key or the default value provided if it doesn't exist or it's not an object.default JsObj
Json. getObj(JsPath path, Supplier<JsObj> orElse)
Returns the object located at the given path or the default value provided if it doesn't exist or it's not an object.default boolean
JsValue. isObj(Predicate<JsObj> predicate)
Returns true if this elem is a JsObj and satisfies the given predicateJsArray
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. 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. -
Uses of JsObj in jsonvalues.gen
Methods in jsonvalues.gen that return types with arguments of type JsObj Modifier and Type Method Description Supplier<JsObj>
JsObjGen. apply(Random seed)
Returns a supplier from the specified seed that generates a new JsObj each time it's calledfun.gen.Gen<JsObj>
JsObjGen. suchThat(JsObjSpec spec)
Creates a generator that generates values from this gen that satisfy the specified spec.fun.gen.Gen<JsObj>
JsObjGen. suchThat(JsObjSpec spec, int tries)
Creates a generator that generates values from this gen that satisfy the specified spec.fun.gen.Gen<JsObj>
JsObjGen. suchThatNo(JsObjSpec spec)
Creates a generator that generates values from this gen that doesn't satisfy the specified spec.fun.gen.Gen<JsObj>
JsObjGen. suchThatNo(JsObjSpec spec, int tries)
Creates a generator that generates values from this gen that doesn't satisfy the specified spec. -
Uses of JsObj in jsonvalues.spec
Methods in jsonvalues.spec that return JsObj Modifier and Type Method Description JsObj
JsObjParser. parse(byte[] bytes)
parses an array of bytes into a Json object that must conform the spec of the parser.JsObj
JsObjParser. parse(InputStream inputstream)
parses an input stream of bytes into a Json object that must conform the spec of the parser.JsObj
JsObjParser. parse(String str)
parses a string into a Json object that must conform the spec of the parser.Methods in jsonvalues.spec with parameters of type JsObj Modifier and Type Method Description Set<SpecError>
JsObjSpec. test(JsObj obj)
Method parameters in jsonvalues.spec with type arguments of type JsObj Modifier and Type Method Description static JsArraySpec
JsSpecs. arrayOfObj(Predicate<JsObj> predicate)
non-nullable array of objects, where each element of the array satisfies the given predicatestatic JsArraySpec
JsSpecs. arrayOfObj(Predicate<JsObj> predicate, int minLength, int maxLength)
non-nullable array of objects, where each element of the array satisfies the given predicatestatic JsSpec
JsSpecs. obj(Predicate<JsObj> predicate)
non-nullable json object that satisfies the given predicateJsObjSpec
JsObjSpec. suchThat(Predicate<JsObj> predicate)
-