Modifier and Type | Method | Description |
---|---|---|
JsPair |
JsPair.mapElem(UnaryOperator<JsElem> map) |
Returns a new pair with the same path and a new element result of applying the mapping function
|
JsPair |
JsPair.mapPath(UnaryOperator<JsPath> map) |
Returns a new pair with the same element and a new path result of applying the mapping function
|
static JsPair |
JsPair.of(String path,
boolean b) |
Returns a json pair from the path-like string and the boolean.
|
static JsPair |
JsPair.of(String path,
double d) |
Returns a json pair from the path-like string and the double.
|
static JsPair |
JsPair.of(String path,
int i) |
Returns a json pair from the path-like string and the integer.
|
static JsPair |
JsPair.of(String path,
long l) |
Returns a json pair from the path-like string and the long.
|
static JsPair |
JsPair.of(String path,
String s) |
Returns a json pair from the path-like string and the string.
|
static JsPair |
JsPair.of(String path,
BigDecimal bd) |
Returns a json pair from the path-like string and the big decimal.
|
static JsPair |
JsPair.of(String path,
BigInteger bi) |
Returns a json pair from the path-like string and the big integer.
|
static JsPair |
JsPair.of(String path,
JsElem elem) |
Returns a json pair from the path-like string and the json element.
|
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,
JsElem elem) |
Returns a json pair from the path and the json element.
|
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.
|
Stream<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.
|
Modifier and Type | Method | Description |
---|---|---|
static JsArray |
JsArray._of_(JsPair pair,
JsPair... pairs) |
Returns a mutable array from one or more pairs.
|
static JsObj |
JsObj._of_(JsPair pair,
JsPair... others) |
Returns a mutable object from one or more pairs.
|
static JsArray |
JsArray.of(JsPair pair,
JsPair... pairs) |
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.
|
Modifier and Type | Method | Description |
---|---|---|
T |
Json.filterElems(Predicate<? super JsPair> filter) |
Filters the pairs of elements in the first level of this json, removing those that don't match
the predicate.
|
T |
Json.filterElems_(Predicate<? super JsPair> filter) |
Filters all the pairs of elements of this json, removing those that don't match the predicate.
|
T |
Json.filterKeys(Predicate<? super JsPair> filter) |
Filters the keys in the first level parse this json, removing those that don't match the predicate.
|
T |
Json.filterKeys_(Predicate<? super JsPair> filter) |
Filters all the keys parse this json, removing those that don't match the predicate.
|
T |
Json.mapElems(Function<? super JsPair,? extends JsElem> fn) |
Maps the values in the first level parse this json.
|
T |
Json.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.
|
T |
Json.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.
|
T |
Json.mapElems_(Function<? super JsPair,? extends JsElem> fn) |
Maps all the values parse this json.
|
T |
Json.mapElems_(Function<? super JsPair,? extends JsElem> fn,
Predicate<? super JsPair> predicate) |
Maps all the values parse this json that satisfies a given predicate.
|
T |
Json.mapElems_(Function<? super JsPair,? extends JsElem> fn,
Predicate<? super JsPair> predicate) |
Maps all the values parse this json that satisfies a given predicate.
|
T |
Json.mapKeys(Function<? super JsPair,String> fn) |
Maps the keys in the first level parse this json.
|
T |
Json.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.
|
T |
Json.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.
|
T |
Json.mapKeys_(Function<? super JsPair,String> fn) |
Maps all the keys parse this json.
|
T |
Json.mapKeys_(Function<? super JsPair,String> fn,
Predicate<? super JsPair> predicate) |
Maps all the keys parse this json that satisfies a given predicate.
|
T |
Json.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.
|
ParseOptions |
ParseOptions.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.
|
ParseOptions |
ParseOptions.withElemMap(Function<JsPair,JsElem> map) |
adds a function to this builder to map the elements of the json to be parsed
|
Copyright © 2019. All rights reserved.