void |
JsPair.consumeIf(Predicate<JsPair> predicate,
Consumer<JsPair> consumer) |
Consumes this pair if it's evaluated to true o a given predicate
|
void |
JsPair.consumeIf(Predicate<JsPair> predicate,
Consumer<JsPair> consumer) |
Consumes this pair if it's evaluated to true o a given predicate
|
T |
Json.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.
|
T |
Json.filterElems_(Predicate<? super JsPair> filter) |
Filters all the pairs of elements of this json, removing those that don't ifPredicateElse the predicate.
|
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.
|
T |
Json.filterKeys_(Predicate<? super JsPair> filter) |
Filters all the keys of this json, removing those that don't ifPredicateElse the predicate.
|
<R> R |
JsPair.ifElse(Predicate<? super JsPair> predicate,
Function<? super JsPair,R> ifTrue,
Function<? super JsPair,R> ifFalse) |
Declarative way of implementing an if-else.
|
<R> R |
JsPair.ifElse(Predicate<? super JsPair> predicate,
Function<? super JsPair,R> ifTrue,
Function<? super JsPair,R> ifFalse) |
Declarative way of implementing an if-else.
|
T |
Json.mapElems(Function<? super JsPair,? extends JsElem> fn) |
Maps the values in the first level of this json.
|
T |
Json.mapElems(Function<? super JsPair,? extends JsElem> fn,
Predicate<? super JsPair> predicate) |
Maps the values in the first level of this json that satisfies a given predicate.
|
T |
Json.mapElems(Function<? super JsPair,? extends JsElem> fn,
Predicate<? super JsPair> predicate) |
Maps the values in the first level of this json that satisfies a given predicate.
|
T |
Json.mapElems_(Function<? super JsPair,? extends JsElem> fn) |
Maps all the values of this json.
|
T |
Json.mapElems_(Function<? super JsPair,? extends JsElem> fn,
Predicate<? super JsPair> predicate) |
Maps all the values of this json that satisfies a given predicate.
|
T |
Json.mapElems_(Function<? super JsPair,? extends JsElem> fn,
Predicate<? super JsPair> predicate) |
Maps all the values of this json that satisfies a given predicate.
|
T |
Json.mapKeys(Function<? super JsPair,String> fn) |
Maps the keys in the first level of this json.
|
T |
Json.mapKeys(Function<? super JsPair,String> fn,
Predicate<? super JsPair> predicate) |
Maps the keys in the first level of this json that satisfies a given predicate.
|
T |
Json.mapKeys(Function<? super JsPair,String> fn,
Predicate<? super JsPair> predicate) |
Maps the keys in the first level of this json that satisfies a given predicate.
|
T |
Json.mapKeys_(Function<? super JsPair,String> fn) |
Maps all the keys of this json.
|
T |
Json.mapKeys_(Function<? super JsPair,String> fn,
Predicate<? super JsPair> predicate) |
Maps all the keys of this json that satisfies a given predicate.
|
T |
Json.mapKeys_(Function<? super JsPair,String> fn,
Predicate<? super JsPair> predicate) |
Maps all the keys of 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.
|
ParseBuilder |
ParseBuilder.withElemFilter(Predicate<? super JsPair> filter) |
adds a predicate to this builder to filter the elements of the json, removing those pairs that
are evaluated to false on the predicate.
|
ParseBuilder |
ParseBuilder.withElemMap(Function<? super JsPair,? extends JsElem> map) |
adds a function to this builder to map the elements of the json.
|