Uses of Class
jsonvalues.JsObj
-
Packages that use JsObj Package Description com.dslplatform.json.serializers jsonvalues json-values is a one-package and zero-dependency library to work with jsons in a declarative and functional way. -
-
Uses of JsObj in com.dslplatform.json.serializers
Classes in com.dslplatform.json.serializers with type parameters of type JsObj Modifier and Type Class Description classObjSerializer<T extends JsObj>Method parameters in com.dslplatform.json.serializers with type arguments of type JsObj Modifier and Type Method Description voidValueSerializer. setObjectSerializer(com.dslplatform.json.JsonWriter.WriteObject<JsObj> objectSerializer) -
Uses of JsObj in jsonvalues
Fields in jsonvalues declared as JsObj Modifier and Type Field Description static JsObjJsObj. EMPTYMethods in jsonvalues that return JsObj Modifier and Type Method Description JsObjJsObj. append(JsPath path, JsValue elem)JsObjJsObj. appendAll(JsPath path, JsArray elems)static JsObjJsObj. empty()JsObjJsObj. filterAllKeys(Predicate<? super JsPair> filter)JsObjJsObj. filterAllObjs(BiPredicate<? super JsPath,? super JsObj> filter)JsObjJsObj. filterAllValues(Predicate<? super JsPair> filter)JsObjJsObj. filterKeys(Predicate<? super JsPair> filter)JsObjJsObj. filterObjs(BiPredicate<? super JsPath,? super JsObj> filter)JsObjJsObj. filterValues(Predicate<? super JsPair> filter)default JsObjJson. getObj(JsPath path)Returns the object located at the given path or null if it doesn't exist or it's not an object.JsObjJsObj. intersection(JsObj that, JsArray.TYPE ARRAY_AS)this.intersection(that, SET)returns an array with the elements that exist in boththisandthatthis.intersection(that, MULTISET)returns an array with the elements that exist in boththisandthat, being duplicates allowed.JsObjJsObj. 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.JsObjJsObj. mapAllKeys(Function<? super JsPair,String> fn)JsObjJsObj. mapAllKeys(Function<? super JsPair,String> fn, Predicate<? super JsPair> predicate)JsObjJsObj. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)JsObjJsObj. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)JsObjJsObj. mapAllValues(Function<? super JsPair,? extends JsValue> fn)JsObjJsObj. mapAllValues(Function<? super JsPair,? extends JsValue> fn, Predicate<? super JsPair> predicate)JsObjJsObj. mapKeys(Function<? super JsPair,String> fn)JsObjJsObj. mapKeys(Function<? super JsPair,String> fn, Predicate<? super JsPair> predicate)JsObjJsObj. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)JsObjJsObj. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)JsObjJsObj. mapValues(Function<? super JsPair,? extends JsValue> fn)JsObjJsObj. mapValues(Function<? super JsPair,? extends JsValue> fn, Predicate<? super JsPair> predicate)static JsObjJsObj. of(String key, JsValue el)Returns a one-element immutable object.static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2)Returns a two-element immutable object.static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3)Returns a three-element immutable object.static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4)Returns a four-element immutable object.static JsObjJsObj. of(String key1, JsValue el1, String key2, JsValue el2, String key3, JsValue el3, String key4, JsValue el4, String key5, JsValue el5)Returns a five-element immutable object.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)Returns a six-element immutable object.static JsObjJsObj. of(JsPair pair, JsPair... others)Returns an immutable object from one or more pairs.static JsObjJsObj. ofIterable(Iterable<Map.Entry<String,JsValue>> xs)static JsObjJsObj. parse(String str)Tries to parse the string into an immutable object.static JsObjJsObj. parse(String str, ParseBuilder builder)Tries to parse the string into an immutable object, performing the specified transformations during the parsing.JsObjJsObj. prepend(JsPath path, JsValue elem)JsObjJsObj. prependAll(JsPath path, JsArray elems)JsObjJsObj. put(JsPath path, Function<? super JsValue,? extends JsValue> fn)JsObjJsObj. remove(JsPath path)JsObjJsObj. tail()Returns a new object with all the entries of this json object except the one with the given key.default JsObjJsValue. toJsObj()JsObjJsObj. union(JsObj that)returnsthisjson object plus those pairs from the given json objectthatwhich keys don't exist inthis.JsObjJsObj. unionAll(JsObj that, JsArray.TYPE ARRAY_AS)behaves like theunion(JsObj)but, for those keys that exit in boththisandthatjson 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 default Optional<JsObj>Json. getObjOpt(JsPath path)Returns the object located at the given path orOptional.empty()if it doesn't exist or it's not an object.Methods in jsonvalues with parameters of type JsObj Modifier and Type Method Description booleanJsObj. equals(JsObj that, JsArray.TYPE ARRAY_AS)return true if this obj is equal to the given as a parameter.JsObjJsObj. intersection(JsObj that, JsArray.TYPE ARRAY_AS)this.intersection(that, SET)returns an array with the elements that exist in boththisandthatthis.intersection(that, MULTISET)returns an array with the elements that exist in boththisandthat, being duplicates allowed.JsObjJsObj. 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.JsObjJsObj. union(JsObj that)returnsthisjson object plus those pairs from the given json objectthatwhich keys don't exist inthis.JsObjJsObj. unionAll(JsObj that, JsArray.TYPE ARRAY_AS)behaves like theunion(JsObj)but, for those keys that exit in boththisandthatjson 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 JsArrayJsArray. filterAllObjs(BiPredicate<? super JsPath,? super JsObj> filter)JsObjJsObj. filterAllObjs(BiPredicate<? super JsPath,? super JsObj> filter)TJson. filterAllObjs(BiPredicate<? super JsPath,? super JsObj> filter)Filters all the pair of jsons of this json, removing those that don't ifPredicateElse the predicate.JsArrayJsArray. filterObjs(BiPredicate<? super JsPath,? super JsObj> filter)JsObjJsObj. filterObjs(BiPredicate<? super JsPath,? super JsObj> filter)TJson. filterObjs(BiPredicate<? super JsPath,? super JsObj> filter)Filters the pair of jsons in the first level of this json, removing those that don't ifPredicateElse the predicate.<T> TJsPair. ifJsonElse(BiFunction<JsPath,JsObj,T> ifJsOb, BiFunction<JsPath,JsArray,T> ifJsArr, BiFunction<JsPath,JsValue,T> ifNotJson)Declarative way of implementing an if(obj)return T; else if(array) return T; else return T; where T is computed by the given functionsstatic <T> Function<JsValue,T>MatchExp. ifJsonElse(Function<? super JsObj,T> ifObj, Function<? super JsArray,T> ifArr, Function<? super JsValue,T> ifValue)return a matching expression to extract objs and arrays out of json elements.static <T> Function<JsValue,T>MatchExp. ifObjElse(Function<? super JsObj,T> ifObj, Function<? super JsValue,T> ifNotObj)return a matching expression to extract json objects out of json elements.default booleanJsValue. isObj(Predicate<JsObj> predicate)Returns true if this elem is a JsObj and satisfies the given predicateJsArrayJsArray. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)JsArrayJsArray. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)JsArrayJsArray. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)JsArrayJsArray. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)JsArrayJsArray. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)JsObjJsObj. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)JsObjJsObj. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)JsObjJsObj. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)JsObjJsObj. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)JsObjJsObj. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)TJson. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)Maps all the jsons of this json.TJson. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)Maps all the jsons of this json.TJson. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)Maps all the jsons of this json that satisfies a given predicate.TJson. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)Maps all the jsons of this json that satisfies a given predicate.TJson. mapAllObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)Maps all the jsons of this json that satisfies a given predicate.JsArrayJsArray. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)JsArrayJsArray. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)JsArrayJsArray. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)JsArrayJsArray. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)JsArrayJsArray. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)JsObjJsObj. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)JsObjJsObj. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)JsObjJsObj. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)JsObjJsObj. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)JsObjJsObj. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)TJson. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)Maps the jsons in the first level of this json.TJson. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn)Maps the jsons in the first level of this json.TJson. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)Maps the jsons in the first level of this json that satisfies a given predicate.TJson. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)Maps the jsons in the first level of this json that satisfies a given predicate.TJson. mapObjs(BiFunction<? super JsPath,? super JsObj,JsObj> fn, BiPredicate<? super JsPath,? super JsObj> predicate)Maps the jsons in the first level of this json that satisfies a given predicate.
-