Uses of Class
jsonvalues.JsPair
-
-
Uses of JsPair in jsonvalues
Methods in jsonvalues that return JsPair Modifier and Type Method Description JsPairJsPair. mapElem(UnaryOperator<JsElem> map)Returns a new pair with the same path and a new element result of applying the mapping functionJsPairJsPair. mapPath(UnaryOperator<JsPath> map)Returns a new pair with the same element and a new path result of applying the mapping functionstatic JsPairJsPair. of(String path, boolean b)Returns a json pair from the path-like string and the boolean.static JsPairJsPair. of(String path, double d)Returns a json pair from the path-like string and the double.static JsPairJsPair. of(String path, int i)Returns a json pair from the path-like string and the integer.static JsPairJsPair. of(String path, long l)Returns a json pair from the path-like string and the long.static JsPairJsPair. of(String path, String s)Returns a json pair from the path-like string and the string.static JsPairJsPair. of(String path, BigDecimal bd)Returns a json pair from the path-like string and the big decimal.static JsPairJsPair. of(String path, BigInteger bi)Returns a json pair from the path-like string and the big integer.static JsPairJsPair. of(String path, JsElem elem)Returns a json pair from the path-like string and the json element.static JsPairJsPair. of(JsPath path, boolean b)Returns a json pair from the path and the boolean.static JsPairJsPair. of(JsPath path, double d)Returns a json pair from the path and the double.static JsPairJsPair. of(JsPath path, int i)Returns a json pair from the path and the integer.static JsPairJsPair. of(JsPath path, long l)Returns a json pair from the path and the long.static JsPairJsPair. of(JsPath path, String s)Returns a json pair from the path and the string.static JsPairJsPair. of(JsPath path, BigDecimal bd)Returns a json pair from the path and the big decimal.static JsPairJsPair. of(JsPath path, BigInteger bi)Returns a json pair from the path and the big integer.static JsPairJsPair. of(JsPath path, JsElem 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 static Collector<JsPair,JsArray,JsArray>JsArray. _collector_()Returns a collector that accumulates the pairs from a stream into a mutable array.static Collector<JsPair,JsObj,JsObj>JsObj. _collector_()Returns a collector that accumulates the pairs from a stream into an mutable object.static Collector<JsPair,JsArray,JsArray>JsArray. collector()Returns a collector that accumulates the pairs from a stream into an immutable array.static Collector<JsPair,JsObj,JsObj>JsObj. collector()Returns a collector that accumulates the pairs from a stream into an immutable object.static Function<JsPair,JsPair>JsPair. mapIfInt(IntUnaryOperator operator)Declarative way of implementingif(pair.elem.isInt()) return Pair.parse(pair.path, pair.elem.asJsInt().map(operator)) else return pairstatic Function<JsPair,JsPair>JsPair. mapIfInt(IntUnaryOperator operator)Declarative way of implementingif(pair.elem.isInt()) return Pair.parse(pair.path, pair.elem.asJsInt().map(operator)) else return pairstatic Function<JsPair,JsPair>JsPair. mapIfStr(UnaryOperator<String> fn)Declarative way of implementingif(pair.elem.isStr()) return Pair.parse(pair.path, pair.elem.asJsStr().map(mapFn)) else return pairstatic Function<JsPair,JsPair>JsPair. mapIfStr(UnaryOperator<String> fn)Declarative way of implementingif(pair.elem.isStr()) return Pair.parse(pair.path, pair.elem.asJsStr().map(mapFn)) else return pairStream<JsPair>Json. stream()Returns a stream over the pairs of elements in the first level of this json object.Stream<JsPair>Json. stream_()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 JsArrayJsArray. _of_(JsPair pair, JsPair... pairs)Returns a mutable array from one or more pairs.static JsObjJsObj. _of_(JsPair pair, JsPair... others)Returns a mutable object from one or more pairs.static JsArrayJsArray. of(JsPair pair, JsPair... pairs)Returns an immutable array from one or more pairs.static JsObjJsObj. 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 voidJsPair. consumeIf(Predicate<JsPair> predicate, Consumer<JsPair> consumer)Consumes this pair if it's evaluated to true o a given predicatevoidJsPair. consumeIf(Predicate<JsPair> predicate, Consumer<JsPair> consumer)Consumes this pair if it's evaluated to true o a given predicateTJson. filterElems(Predicate<? super JsPair> filter)Filters the pairs of elements in the first level of this json, removing those that don't ifPredicateElse the predicate.TJson. filterElems_(Predicate<? super JsPair> filter)Filters all the pairs of elements of this json, removing those that don't ifPredicateElse the predicate.TJson. filterKeys(Predicate<? super JsPair> filter)Filters the keys in the first level parse this json, removing those that don't ifPredicateElse the predicate.TJson. filterKeys_(Predicate<? super JsPair> filter)Filters all the keys parse this json, removing those that don't ifPredicateElse the predicate.<R> RJsPair. ifElse(Predicate<? super JsPair> predicate, Function<? super JsPair,R> ifTrue, Function<? super JsPair,R> ifFalse)Declarative way of implementing an if-else.<R> RJsPair. ifElse(Predicate<? super JsPair> predicate, Function<? super JsPair,R> ifTrue, Function<? super JsPair,R> ifFalse)Declarative way of implementing an if-else.TJson. mapElems(Function<? super JsPair,? extends JsElem> fn)Maps the values in the first level parse this json.TJson. mapElems(Function<? super JsPair,? extends JsElem> fn, Predicate<? super JsPair> predicate)Maps the values in the first level parse this json that satisfies a given predicate.TJson. mapElems(Function<? super JsPair,? extends JsElem> fn, Predicate<? super JsPair> predicate)Maps the values in the first level parse this json that satisfies a given predicate.TJson. mapElems_(Function<? super JsPair,? extends JsElem> fn)Maps all the values parse this json.TJson. mapElems_(Function<? super JsPair,? extends JsElem> fn, Predicate<? super JsPair> predicate)Maps all the values parse this json that satisfies a given predicate.TJson. mapElems_(Function<? super JsPair,? extends JsElem> fn, Predicate<? super JsPair> predicate)Maps all the values parse this json that satisfies a given predicate.TJson. mapKeys(Function<? super JsPair,String> fn)Maps the keys in the first level parse this json.TJson. mapKeys(Function<? super JsPair,String> fn, Predicate<? super JsPair> predicate)Maps the keys in the first level parse this json that satisfies a given predicate.TJson. mapKeys(Function<? super JsPair,String> fn, Predicate<? super JsPair> predicate)Maps the keys in the first level parse this json that satisfies a given predicate.TJson. mapKeys_(Function<? super JsPair,String> fn)Maps all the keys parse this json.TJson. mapKeys_(Function<? super JsPair,String> fn, Predicate<? super JsPair> predicate)Maps all the keys parse this json that satisfies a given predicate.TJson. mapKeys_(Function<? super JsPair,String> fn, Predicate<? super JsPair> predicate)Maps all the keys parse this json that satisfies a given 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>Json. reduce_(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. reduce_(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.ParseOptionsParseOptions. withElemFilter(Predicate<? super JsPair> filter)adds a predicate to this builder to filter the elements of the json to be parsed, removing those pairs that are evaluated to false on the predicate.ParseOptionsParseOptions. withElemMap(Function<JsPair,JsElem> map)adds a function to this builder to map the elements of the json to be parsed
-