default T |
Json.add(JsPath path,
boolean elem) |
Inserts the given boolean at the given path in this json, replacing any existing element at that path.
|
default T |
Json.add(JsPath path,
double elem) |
Inserts the given double at the given path in this json, replacing any existing element at that path.
|
default T |
Json.add(JsPath path,
int elem) |
Inserts the given integer at the given path in this json, replacing any existing element at that path.
|
default T |
Json.add(JsPath path,
long elem) |
Inserts the given long at the given path in this json, replacing any existing element at that path.
|
default T |
Json.add(JsPath path,
String elem) |
Inserts the given string at the given path in this json, replacing any existing element at that path.
|
T |
Json.add(JsPath path,
Function<? super JsElem,? extends JsElem> fn) |
Inserts the element returned by the function at the given path in this json, replacing any existing
element at that path.
|
default T |
Json.add(JsPath path,
JsElem elem) |
Inserts the given element at the given path in this json, replacing any existing element at that path.
|
default T |
Json.append(JsPath path,
boolean elem,
boolean... others) |
Appends one or more booleans, starting from the first, to the array located at the given path in
this json.
|
default T |
Json.append(JsPath path,
double elem,
double... others) |
Appends one or more doubles, starting from the first, to the array located at the given path in
this json.
|
default T |
Json.append(JsPath path,
int elem,
int... others) |
Appends one or more integers, starting from the first, to the array located at the given path in
this json.
|
default T |
Json.append(JsPath path,
long elem,
long... others) |
Appends one or more longs, starting from the first, to the array located at the given path in
this json.
|
default T |
Json.append(JsPath path,
String elem,
String... others) |
Appends one or more strings, starting from the first, to the array located at the given path in
this json.
|
T |
Json.append(JsPath path,
JsElem elem) |
Appends one element to the array located at the given path in this json.
|
default T |
Json.append(JsPath path,
JsElem elem,
JsElem... others) |
Appends one or more elements, starting from the first, to the array located at the given path in
this json.
|
JsPath |
JsPath.append(JsPath path) |
Creates a new JsPath appending the given path to this path.
|
T |
Json.appendAll(JsPath path,
JsArray elems) |
Appends all the elements of the array, starting from the head, to the array located at the given
path in this json.
|
default T |
Json.appendAllIfPresent(JsPath path,
Supplier<JsArray> supplier) |
Appends all the elements of the array computed by the supplier, starting from the head, to an
array located at the given path in this json, returning the same this instance if the array is
not present, in which case, the supplier is not invoked.
|
default T |
Json.appendIfPresent(JsPath path,
boolean number,
boolean... others) |
Appends one or more booleans to the array located at the given path in this json, returning the
same this instance if the array is not present.
|
default T |
Json.appendIfPresent(JsPath path,
double number,
double... others) |
Appends one or more doubles to the array located at the given path in this json, returning the
same this instance if the array is not present.
|
default T |
Json.appendIfPresent(JsPath path,
int number,
int... others) |
Appends one or more integers to the array located at the given path in this json, returning the
same this instance if the array is not present.
|
default T |
Json.appendIfPresent(JsPath path,
long number,
long... others) |
Appends one or more longs to the array located at the given path in this json, returning the
same this instance if the array is not present.
|
default T |
Json.appendIfPresent(JsPath path,
String str,
String... others) |
Appends one or more strings to the array located at the given path in this json, returning the
same this instance if the array is not present.
|
default T |
Json.appendIfPresent(JsPath path,
Supplier<? extends JsElem> supplier) |
Appends the element given by the supplier, to the array located at the given path in this json,
returning the same this instance if the array is not present.
|
int |
JsPath.compareTo(JsPath that) |
Compares this path with another given as a parameter by comparing in order each of their positions,
one by one, until a result different than zero is returned or all the positions of any path are
consumed.
|
default boolean |
Json.containsPath(JsPath path) |
Returns true if an element exists in this json at the given path.
|
boolean |
JsPath.endsWith(JsPath path) |
returns true if this path ends with the given path.
|
default JsElem |
Json.get(JsPath path) |
Returns the element located at the given path or JsNothing if it doesn't exist.
|
default Optional<JsArray> |
Json.getArray(JsPath path) |
Returns the array located at the given path or Optional.empty() if it doesn't exist or
it's not an array.
|
default Optional<BigDecimal> |
Json.getBigDecimal(JsPath path) |
Returns the big decimal located at the given path as a big decimal or Optional.empty() if
it doesn't exist or it's not a decimal number.
|
default Optional<BigInteger> |
Json.getBigInt(JsPath path) |
Returns the big integer located at the given path as a big integer or Optional.empty() if it doesn't
exist or it's not an integral number.
|
default Optional<Boolean> |
Json.getBool(JsPath path) |
Returns the boolean located at the given path or Optional.empty() if it doesn't exist.
|
default OptionalDouble |
Json.getDouble(JsPath path) |
Returns the decimal number located at the given path as a double or OptionalDouble.empty() if it
doesn't exist or it's not a decimal number.
|
default OptionalInt |
Json.getInt(JsPath path) |
Returns the integral number located at the given path as an integer or OptionalInt.empty() if it
doesn't exist or it's not an integral number or it's an integral number but doesn't fit in an integer.
|
default OptionalLong |
Json.getLong(JsPath path) |
Returns the integral number located at the given path as a long or OptionalLong.empty() if it
doesn't exist or it's not an integral number or it's an integral number but doesn't fit in a long.
|
default Optional<JsObj> |
Json.getObj(JsPath path) |
Returns the object located at the given path or Optional.empty() if it doesn't exist or it's
not an object.
|
default Optional<String> |
Json.getStr(JsPath path) |
Returns the string located at the given path or Optional.empty() if it doesn't exist or it's
not an string.
|
default T |
Json.merge(JsPath path,
JsElem value,
BiFunction<? super JsElem,? super JsElem,? extends JsElem> fn) |
If the given path is not already associated with a value or is associated with null, associates it with the given value.
|
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.
|
default T |
Json.prepend(JsPath path,
boolean elem,
boolean... others) |
prepends one or more booleans, starting from the first, to the array located at the path in this
json.
|
default T |
Json.prepend(JsPath path,
double elem,
double... others) |
prepends one or more doubles, starting from the first, to the array located at the path in this
json.
|
default T |
Json.prepend(JsPath path,
int elem,
int... others) |
prepends one or more integers, starting from the first, to the array located at the path in this
json.
|
default T |
Json.prepend(JsPath path,
long elem,
long... others) |
prepends one or more longs, starting from the first, to the array located at the path in this
json.
|
default T |
Json.prepend(JsPath path,
String elem,
String... others) |
Prepends one or more strings, starting from the first, to the array located at the path in this
json.
|
T |
Json.prepend(JsPath path,
JsElem elem) |
prepends one element to the array located at the path in this json.
|
default T |
Json.prepend(JsPath path,
JsElem elem,
JsElem... others) |
prepends one or more elements, starting from the first, to the array located at the path in this
json.
|
JsPath |
JsPath.prepend(JsPath path) |
Creates a new JsPath prepending the given path to this path.
|
T |
Json.prependAll(JsPath path,
JsArray elems) |
prepends all the elements of the array, starting from the head, to the array located at the path
in this json.
|
default T |
Json.prependAllIfPresent(JsPath path,
Supplier<JsArray> supplier) |
Prepends all the elements of the array computed by the supplier, starting from the head, to the
array located at the path in this json, returning the same this instance if the array is not present,
in which case, the supplier is not invoked.
|
default T |
Json.prependIfPresent(JsPath path,
boolean bool,
boolean... others) |
Prepends one or more booleans to the array located at the given path in this json in the following
order [number, others, existing elements], returning the same this instance if the array is not present.
|
default T |
Json.prependIfPresent(JsPath path,
double number,
double... others) |
Prepends one or more doubles to the array located at the given path in this json in the following
order [number, others, existing elements], returning the same this instance if the array is not present.
|
default T |
Json.prependIfPresent(JsPath path,
int number,
int... others) |
Prepends one or more integers to the array located at the given path in this json in the following
order [number, others, existing elements], returning the same this instance if the array is not present.
|
default T |
Json.prependIfPresent(JsPath path,
long number,
long... others) |
Prepends one or more longs to the array located at the given path in this json in the following
order [number, others, existing elements], returning the same this instance if the array is not present.
|
default T |
Json.prependIfPresent(JsPath path,
String str,
String... others) |
Prepends one or more strings to the array located at the given path in this json in the following
order [number, others, existing elements], returning the same this instance if the array is not present.
|
default T |
Json.prependIfPresent(JsPath path,
Supplier<JsElem> supplier) |
Prepends one element given by a supplier, to the array located at the given path in this json,
returning the same this instance if the array is not present.
|
default T |
Json.put(JsPath path,
boolean bool) |
Inserts the boolean at the given path in this json, replacing any existing element in the path
and filling with JsNull empty positions in arrays when necessary.
|
default T |
Json.put(JsPath path,
int n) |
Inserts the integer number at the path in this json, replacing any existing element and filling with JsNull
empty indexes in arrays when necessary.
|
default T |
Json.put(JsPath path,
long n) |
Inserts the long number at the path in this json, replacing any existing element and filling with JsNull
empty indexes in arrays when necessary.
|
default T |
Json.put(JsPath path,
String str) |
Inserts the string at the given path in this json, replacing any existing element in the path
and filling with JsNull empty positions in arrays when necessary.
|
default T |
Json.put(JsPath path,
BigDecimal bigdecimal) |
Inserts the big decimal number at the given path in this json, replacing any existing element in
the path and filling with JsNull empty positions in arrays when necessary.
|
default T |
Json.put(JsPath path,
BigInteger bigint) |
Inserts the big integer number at the given path in this json, replacing any existing element
in teh path and filling with JsNull empty positions in arrays when necessary.
|
T |
Json.put(JsPath path,
Function<? super JsElem,? extends JsElem> fn) |
Inserts the element returned by the function at the given path in this json, replacing any existing element
and filling with JsNull empty indexes in arrays when necessary.
|
default T |
Json.put(JsPath path,
JsElem element) |
Inserts the element at the path in this json, replacing any existing element and filling with JsNull empty
indexes in arrays when necessary.
|
default T |
Json.putIf(Predicate<? super JsElem> predicate,
JsPath path,
Function<? super JsElem,? extends JsElem> fn) |
Inserts at the given path in this json, if the existing element satisfies the predicate, a new
element returned by the function.
|
default T |
Json.putIfAbsent(JsPath path,
double number) |
Inserts at the given path in this json, if no element is present, the specified double, replacing
any existing element in the path and filling with JsNull empty positions in
arrays when necessary.
|
default T |
Json.putIfAbsent(JsPath path,
int number) |
Inserts at the given path in this json, if no element is present, the specified integer, replacing
any existing element in the path and filling with JsNull empty positions in
arrays when necessary.
|
default T |
Json.putIfAbsent(JsPath path,
long number) |
Inserts at the given path in this json, if no element is present, the specified long, replacing
any existing element in the path and filling with JsNull empty positions in
arrays when necessary.
|
default T |
Json.putIfAbsent(JsPath path,
Supplier<? extends JsElem> supplier) |
Inserts at the given path in this json, if no element is present, the element returned by the
supplier, replacing any existing element in the path and filling with JsNull
empty positions in arrays when necessary.
|
default T |
Json.putIfPresent(JsPath path,
double number) |
Inserts at the given path in this json, if some element is present, the specified double.
|
default T |
Json.putIfPresent(JsPath path,
int number) |
Inserts at the given path in this json, if some element is present, the specified integer.
|
default T |
Json.putIfPresent(JsPath path,
long number) |
Inserts at the given path in this json, if some element is present, the specified long.
|
default T |
Json.putIfPresent(JsPath path,
Function<? super JsElem,? extends JsElem> fn) |
Inserts at the given path in this json, if some element is present, the element returned by the
function.
|
T |
Json.remove(JsPath path) |
Removes the element in this json located at the given path, if it exists, returning the same this
instance otherwise
|
default OptionalInt |
Json.size(JsPath path) |
Returns the size of the json located at the given path in this json or OptionalInt.empty() if it
doesn't exist or it's not a Json
|
default OptionalInt |
Json.size_(JsPath path) |
Returns the size of the json located at the given path in this json or OptionalInt.empty() if it
doesn't exist or it's not a Json
|
boolean |
JsPath.startsWith(JsPath path) |
returns true if this path starts with the given path.
|