Uses of Interface
jsonvalues.JsObj
-
-
Uses of JsObj in jsonvalues
Methods in jsonvalues that return JsObj Modifier and Type Method Description default JsObjJsElem. asJsObj()JsObjImmutableJsons.ImmutableJsObjs. empty()Returns the immutable empty object.JsObjMutableJsons.MutableJsObjs. empty()Returns the immutable empty 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. intersection_(JsObj that, JsArray.TYPE ARRAY_AS)this.intersection_(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.JsObjTry. objOrElse(Supplier<JsObj> other)Returns the computed JsObj if the parsed string is a well-formed json object, returning the JsObj given by the supplier otherwise.JsObjTry. objOrElseThrow()Returns the computed JsObj if the parsed string is a well-formed json object, throwing a MalformedJson exception otherwise.JsObjImmutableJsons.ImmutableJsObjs. of(String key, JsElem el)Returns a one-element immutable object.JsObjImmutableJsons.ImmutableJsObjs. of(String key1, JsElem el1, String key2, JsElem el2)Returns a two-element immutable object.JsObjImmutableJsons.ImmutableJsObjs. of(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3)Returns a three-element immutable object.JsObjImmutableJsons.ImmutableJsObjs. of(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3, String key4, JsElem el4)Returns a four-element immutable object.JsObjImmutableJsons.ImmutableJsObjs. of(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3, String key4, JsElem el4, String key5, JsElem el5)Returns a five-element immutable object.JsObjImmutableJsons.ImmutableJsObjs. of(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3, String key4, JsElem el4, String key5, JsElem el5, String key6, JsElem el6)Returns a six-element immutable object.JsObjImmutableJsons.ImmutableJsObjs. of(JsPair pair, JsPair... others)Returns an immutable object from one or more pairs.JsObjMutableJsons.MutableJsObjs. of(String key, JsElem el)Returns a one-element mutable object.JsObjMutableJsons.MutableJsObjs. of(String key1, JsElem el1, String key2, JsElem el2)Returns a two-element mutable object.JsObjMutableJsons.MutableJsObjs. of(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3)Returns a three-element mutable object.JsObjMutableJsons.MutableJsObjs. of(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3, String key4, JsElem el4)Returns a four-element mutable object.JsObjMutableJsons.MutableJsObjs. of(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3, String key4, JsElem el4, String key5, JsElem el5)Returns a five-element mutable object.JsObjMutableJsons.MutableJsObjs. of(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3, String key4, JsElem el4, String key5, JsElem el5, String key6, JsElem el6)Returns a six-element mutable object.JsObjMutableJsons.MutableJsObjs. of(JsPair pair, JsPair... others)Returns an immutable object from one or more pairs.JsObjImmutableJsons.ImmutableJsObjs. ofIterable(Iterable<Map.Entry<String,JsElem>> xs)JsObjTryObj. orElse(Supplier<JsObj> other)Returns the computed JsObj if the parsed string is a well-formed json object, returning the JsObj given by the supplier otherwise.JsObjTryObj. orElseThrow()Returns the computed JsObj if the parsed string is a well-formed json object, throwing an exception otherwise.JsObjJsObj. tail(String key)Returns a new object with all the entries of this json object except the one with the given key.JsObjImmutableJsons.ImmutableJsObjs. toImmutable(JsObj mutable)JsObjMutableJsons.MutableJsObjs. toMutable(JsObj map)JsObjJsObj. union(JsObj that)returnsthisjson object plus those pairs from the given json objectthatwhich keys don't exist inthis.JsObjJsObj. union_(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 Collector<JsPair,JsObj,JsObj>MutableJsons.MutableJsObjs. collector()Returns a collector that accumulates the pairs from a stream into an mutable object.Collector<JsPair,JsObj,JsObj>MutableJsons.MutableJsObjs. collector()Returns a collector that accumulates the pairs from a stream into an mutable object.default Optional<JsObj>Json. getObj(JsPath path)Returns the object located at the given path orOptional.empty()if it doesn't exist or it's not an object.Optional<JsObj>TryObj. toOptional()Returns the computed json object wrapped in an optional if the parsed string is a well-formed json object, returning an empty optional otherwise.Methods in jsonvalues with parameters of type JsObj Modifier and Type Method Description default 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. intersection_(JsObj that, JsArray.TYPE ARRAY_AS)this.intersection_(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.booleanJsObj. same(JsObj other)JsObjImmutableJsons.ImmutableJsObjs. toImmutable(JsObj mutable)JsObjMutableJsons.MutableJsObjs. toMutable(JsObj map)JsObjJsObj. union(JsObj that)returnsthisjson object plus those pairs from the given json objectthatwhich keys don't exist inthis.JsObjJsObj. union_(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 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.TJson. filterObjs_(BiPredicate<? super JsPath,? super JsObj> filter)Filters all the pair of jsons of this json, removing those that don't ifPredicateElse the predicate.default <T> Trampoline<T>JsObj. ifEmptyElse(Trampoline<T> empty, BiFunction<Map.Entry<String,JsElem>,JsObj,Trampoline<T>> fn)<T> TJsPair. ifJsonElse(BiFunction<JsPath,JsObj,T> ifJsOb, BiFunction<JsPath,JsArray,T> ifJsArr, BiFunction<JsPath,JsElem,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<JsElem,T>MatchExp. ifJsonElse(Function<? super JsObj,T> ifObj, Function<? super JsArray,T> ifArr, Function<? super JsElem,T> ifValue)return a matching expression to extract objs and arrays out of json elements.static <T> Function<JsElem,T>MatchExp. ifObjElse(Function<? super JsObj,T> ifObj, Function<? super JsElem,T> ifNotObj)return a matching expression to extract json objects out of json elements.default booleanJsElem. isObj(Predicate<JsObj> predicate)Returns true if this elem is a JsObj and satisfies the given predicateTJson. 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.TJson. mapObjs_(BiFunction<? super JsPath,? super JsObj,JsObj> fn)Maps all the jsons of this json.TJson. mapObjs_(BiFunction<? super JsPath,? super JsObj,JsObj> fn)Maps all the jsons of this json.TJson. mapObjs_(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. mapObjs_(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. mapObjs_(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.JsObjTry. objOrElse(Supplier<JsObj> other)Returns the computed JsObj if the parsed string is a well-formed json object, returning the JsObj given by the supplier otherwise.JsObjTryObj. orElse(Supplier<JsObj> other)Returns the computed JsObj if the parsed string is a well-formed json object, returning the JsObj given by the supplier otherwise.Constructors in jsonvalues with parameters of type JsObj Constructor Description Try(JsObj obj)TryObj(JsObj obj)
-