Uses of Class
jsonvalues.JsPair
-
Packages that use JsPair Package Description jsonvalues json-values is a one-package and zero-dependency library to work with jsons in a declarative and functional way. -
-
Uses of JsPair in jsonvalues
Fields in jsonvalues with type parameters of type JsPair Modifier and Type Field Description static Lens<JsPair,JsPath>
JsPair. pathLens
lens that focuses on the path of a pairstatic Lens<JsPair,JsValue>
JsPair. valueLens
lens that focuses on the value of a pairMethods in jsonvalues that return JsPair Modifier and Type Method Description static JsPair
JsPair. of(String key, boolean b)
Returns a json pair from the key and the boolean.static JsPair
JsPair. of(String key, double d)
Returns a json pair from the key and the double.static JsPair
JsPair. of(String key, int i)
Returns a json pair from the key and the integer.static JsPair
JsPair. of(String key, long l)
Returns a json pair from the key and the long.static JsPair
JsPair. of(String key, String s)
Returns a json pair from the key and the string.static JsPair
JsPair. of(String key, BigDecimal bd)
Returns a json pair from the key and the big decimal.static JsPair
JsPair. of(String key, BigInteger bi)
Returns a json pair from the key and the big integer.static JsPair
JsPair. of(JsPath path, boolean b)
Returns a json pair from the path and the boolean.static JsPair
JsPair. of(JsPath path, double d)
Returns a json pair from the path and the double.static JsPair
JsPair. of(JsPath path, int i)
Returns a json pair from the path and the integer.static JsPair
JsPair. of(JsPath path, long l)
Returns a json pair from the path and the long.static JsPair
JsPair. of(JsPath path, String s)
Returns a json pair from the path and the string.static JsPair
JsPair. of(JsPath path, BigDecimal bd)
Returns a json pair from the path and the big decimal.static JsPair
JsPair. of(JsPath path, BigInteger bi)
Returns a json pair from the path and the big integer.static JsPair
JsPair. of(JsPath path, JsValue elem)
Returns a json pair from the path and the json element.Methods in jsonvalues that return types with arguments of type JsPair Modifier and Type Method Description Stream<JsPair>
JsArray. stream()
Stream<JsPair>
JsObj. stream()
Stream<JsPair>
Json. stream()
Returns a stream over the pairs of elements in the first level of this json object.Stream<JsPair>
JsArray. streamAll()
Stream<JsPair>
JsObj. streamAll()
Stream<JsPair>
Json. streamAll()
Returns a stream over all the pairs of elements in this json object.Methods in jsonvalues with parameters of type JsPair Modifier and Type Method Description static JsArray
JsArray. of(JsPair pair, JsPair... others)
Returns an immutable array from one or more pairs.static JsObj
JsObj. of(JsPair pair, JsPair... others)
Returns an immutable object from one or more pairs.Method parameters in jsonvalues with type arguments of type JsPair Modifier and Type Method Description JsArray
JsArray. filterAllKeys(Predicate<? super JsPair> filter)
JsObj
JsObj. filterAllKeys(Predicate<? super JsPair> filter)
T
Json. filterAllKeys(Predicate<? super JsPair> filter)
Filters all the keys of this json, removing those that don't ifPredicateElse the predicate.JsArray
JsArray. filterAllValues(Predicate<? super JsPair> filter)
JsObj
JsObj. filterAllValues(Predicate<? super JsPair> filter)
T
Json. filterAllValues(Predicate<? super JsPair> filter)
Filters all the pairs of elements of this json, removing those that don't ifPredicateElse the predicate.JsArray
JsArray. filterKeys(Predicate<? super JsPair> filter)
JsObj
JsObj. filterKeys(Predicate<? super JsPair> filter)
T
Json. filterKeys(Predicate<? super JsPair> filter)
Filters the keys in the first level of this json, removing those that don't ifPredicateElse the predicate.JsArray
JsArray. filterValues(Predicate<? super JsPair> filter)
JsObj
JsObj. filterValues(Predicate<? super JsPair> filter)
T
Json. filterValues(Predicate<? super JsPair> filter)
Filters the pairs of elements in the first level of this json, removing those that don't ifPredicateElse the predicate.JsArray
JsArray. mapAllKeys(Function<? super JsPair,String> fn)
JsObj
JsObj. mapAllKeys(Function<? super JsPair,String> fn)
T
Json. mapAllKeys(Function<? super JsPair,String> fn)
Maps all the keys of this json.JsArray
JsArray. mapAllValues(Function<? super JsPair,? extends JsValue> fn)
JsObj
JsObj. mapAllValues(Function<? super JsPair,? extends JsValue> fn)
T
Json. mapAllValues(Function<? super JsPair,? extends JsValue> fn)
Maps all the values of this json.JsArray
JsArray. mapKeys(Function<? super JsPair,String> fn)
JsObj
JsObj. mapKeys(Function<? super JsPair,String> fn)
T
Json. mapKeys(Function<? super JsPair,String> fn)
Maps the keys in the first level of this json.JsArray
JsArray. mapValues(Function<? super JsPair,? extends JsValue> fn)
JsObj
JsObj. mapValues(Function<? super JsPair,? extends JsValue> fn)
T
Json. mapValues(Function<? super JsPair,? extends JsValue> fn)
Maps the values in the first level of this json.<R> Optional<R>
JsArray. reduce(BinaryOperator<R> op, Function<? super JsPair,R> map, Predicate<? super JsPair> predicate)
<R> Optional<R>
JsArray. reduce(BinaryOperator<R> op, Function<? super JsPair,R> map, Predicate<? super JsPair> predicate)
<R> Optional<R>
JsObj. reduce(BinaryOperator<R> op, Function<? super JsPair,R> map, Predicate<? super JsPair> predicate)
<R> Optional<R>
JsObj. reduce(BinaryOperator<R> op, Function<? super JsPair,R> map, Predicate<? super JsPair> predicate)
<R> Optional<R>
Json. reduce(BinaryOperator<R> op, Function<? super JsPair,R> map, Predicate<? super JsPair> predicate)
Performs a reduction on the values that satisfy the predicate in the first level of this json.<R> Optional<R>
Json. reduce(BinaryOperator<R> op, Function<? super JsPair,R> map, Predicate<? super JsPair> predicate)
Performs a reduction on the values that satisfy the predicate in the first level of this json.<R> Optional<R>
JsArray. reduceAll(BinaryOperator<R> op, Function<? super JsPair,R> map, Predicate<? super JsPair> predicate)
<R> Optional<R>
JsArray. reduceAll(BinaryOperator<R> op, Function<? super JsPair,R> map, Predicate<? super JsPair> predicate)
<R> Optional<R>
JsObj. reduceAll(BinaryOperator<R> op, Function<? super JsPair,R> map, Predicate<? super JsPair> predicate)
<R> Optional<R>
JsObj. reduceAll(BinaryOperator<R> op, Function<? super JsPair,R> map, Predicate<? super JsPair> predicate)
<R> Optional<R>
Json. reduceAll(BinaryOperator<R> op, Function<? super JsPair,R> map, Predicate<? super JsPair> predicate)
Performs a reduction on the values of this json that satisfy the predicate.<R> Optional<R>
Json. reduceAll(BinaryOperator<R> op, Function<? super JsPair,R> map, Predicate<? super JsPair> predicate)
Performs a reduction on the values of this json that satisfy the predicate.
-