- append(String, boolean, boolean...) - Method in interface jsonvalues.Json
-
Appends one or more booleans, starting from the first, to the array located at the given path in
this json.
- append(String, double, double...) - Method in interface jsonvalues.Json
-
Appends one or more doubles, starting from the first, to the array located at the given path in
this json.
- append(String, int, int...) - Method in interface jsonvalues.Json
-
Appends one or more integers, starting from the first, to the array located at the given path in
this json.
- append(String, long, long...) - Method in interface jsonvalues.Json
-
Appends one or more longs, starting from the first, to the array located at the given path in
this json.
- append(String, String, String...) - Method in interface jsonvalues.Json
-
Appends one or more strings, starting from the first, to the array located at the given path in
this json.
- append(String, JsElem) - Method in interface jsonvalues.Json
-
Appends one element to the array located at the given path in this json.
- append(String, JsElem, JsElem...) - Method in interface jsonvalues.Json
-
Appends one or more elements, starting from the first, to the array located at the given path in
this json.
- append(JsElem, JsElem...) - Method in interface jsonvalues.JsArray
-
Adds one or more elements, starting from the first, to the back of this array.
- append(JsPath) - Method in class jsonvalues.JsPath
-
Creates a new JsPath appending the given path to this path.
- append(JsPath, boolean, boolean...) - Method in interface jsonvalues.Json
-
Appends one or more booleans, starting from the first, to the array located at the given path in
this json.
- append(JsPath, double, double...) - Method in interface jsonvalues.Json
-
Appends one or more doubles, starting from the first, to the array located at the given path in
this json.
- append(JsPath, int, int...) - Method in interface jsonvalues.Json
-
Appends one or more integers, starting from the first, to the array located at the given path in
this json.
- append(JsPath, long, long...) - Method in interface jsonvalues.Json
-
Appends one or more longs, starting from the first, to the array located at the given path in
this json.
- append(JsPath, String, String...) - Method in interface jsonvalues.Json
-
Appends one or more strings, starting from the first, to the array located at the given path in
this json.
- append(JsPath, JsElem) - Method in interface jsonvalues.Json
-
Appends one element to the array located at the given path in this json.
- append(JsPath, JsElem, JsElem...) - Method in interface jsonvalues.Json
-
Appends one or more elements, starting from the first, to the array located at the given path in
this json.
- appendAll(String, JsArray) - Method in interface jsonvalues.Json
-
Appends all the elements of the array, starting from the head, to the array located at the given
path in this json.
- appendAll(JsArray) - Method in interface jsonvalues.JsArray
-
Adds all the elements of the given array, starting from the head, to the back of this array.
- appendAll(JsPath, JsArray) - Method in interface jsonvalues.Json
-
Appends all the elements of the array, starting from the head, to the array located at the given
path in this json.
- appendAllIfPresent(String, Supplier<JsArray>) - Method in interface jsonvalues.Json
-
Appends all the elements of the array computed by the supplier, starting from the head, to an 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.
- appendAllIfPresent(JsPath, Supplier<JsArray>) - Method in interface jsonvalues.Json
-
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.
- appendIfPresent(String, boolean, boolean...) - Method in interface jsonvalues.Json
-
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.
- appendIfPresent(String, double, double...) - Method in interface jsonvalues.Json
-
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.
- appendIfPresent(String, int, int...) - Method in interface jsonvalues.Json
-
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.
- appendIfPresent(String, long, long...) - Method in interface jsonvalues.Json
-
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.
- appendIfPresent(String, String, String...) - Method in interface jsonvalues.Json
-
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.
- appendIfPresent(String, Supplier<? extends JsElem>) - Method in interface jsonvalues.Json
-
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.
- appendIfPresent(JsPath, boolean, boolean...) - Method in interface jsonvalues.Json
-
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.
- appendIfPresent(JsPath, double, double...) - Method in interface jsonvalues.Json
-
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.
- appendIfPresent(JsPath, int, int...) - Method in interface jsonvalues.Json
-
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.
- appendIfPresent(JsPath, long, long...) - Method in interface jsonvalues.Json
-
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.
- appendIfPresent(JsPath, String, String...) - Method in interface jsonvalues.Json
-
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.
- appendIfPresent(JsPath, Supplier<? extends JsElem>) - Method in interface jsonvalues.Json
-
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.
- arrOrElse(Supplier<JsArray>) - Method in class jsonvalues.Try
-
Returns the computed JsArray if the parsed string is a well-formed json array, returning the JsArray
given by the supplier otherwise.
- arrOrElseThrow() - Method in class jsonvalues.Try
-
Returns the computed JsArray if the parsed string is a well-formed json array, throwing a
MalformedJson exception otherwise.
- asIndex() - Method in class jsonvalues.Index
-
Returns this index.
- asIndex() - Method in class jsonvalues.Key
-
throws UnsupportedOperationException.
- asIndex() - Method in interface jsonvalues.Position
-
Casts this position into an Index, throwing an exception if it's a Key.
- asJsArray() - Method in interface jsonvalues.JsElem
-
- asJsBigDec() - Method in interface jsonvalues.JsElem
-
- asJsBigInt() - Method in interface jsonvalues.JsElem
-
- asJsBool() - Method in interface jsonvalues.JsElem
-
- asJsDouble() - Method in interface jsonvalues.JsElem
-
- asJsInt() - Method in interface jsonvalues.JsElem
-
- asJsLong() - Method in interface jsonvalues.JsElem
-
- asJsObj() - Method in interface jsonvalues.JsElem
-
- asJson() - Method in interface jsonvalues.JsElem
-
- asJsStr() - Method in interface jsonvalues.JsElem
-
- asKey() - Method in class jsonvalues.Index
-
Throws an UnsupportedOperationException.
- asKey() - Method in class jsonvalues.Key
-
Returns this key.
- asKey() - Method in interface jsonvalues.Position
-
Casts this position into a Key, throwing an exception if it's an index.
- ifEmptyElse(Supplier<A>, Supplier<A>) - Method in interface jsonvalues.Json
-
Declarative way parse implementing if(this.isEmpty()) return emptySupplier.get() else return
nonEmptySupplier.get()
- ifEmptyElse(Supplier<T>, Supplier<T>) - Method in class jsonvalues.JsPath
-
Provides a declarative way parse implementing an if-else statement based on the condition of if
this path is empty or not.
- ifPredicateElse(Predicate<? super JsPath>, Supplier<T>, Supplier<T>) - Method in class jsonvalues.JsPath
-
Provides a declarative way of implementing an if-else statement based on the condition given by
the predicate.
- inc() - Method in class jsonvalues.JsPath
-
Returns a new path incrementing the last index by one, throwing an UnsupportedOperationException
if the last Position is not an index
- index(int) - Method in class jsonvalues.JsPath
-
Returns a new path appending an index with the given value to the back of this path.
- Index - Class in jsonvalues
-
Represents the index of a JsElem in a JsArray.
- init() - Method in interface jsonvalues.JsArray
-
Returns all the elements of this array except the last one.
- init() - Method in class jsonvalues.JsPath
-
Returns a new path without the last Position of this path.
- intersection(JsArray, JsArray.TYPE) - Method in interface jsonvalues.JsArray
-
Returns the intersection of this array and another given as a parameter, defining characteristics
like order and duplicates occurrence with the given ARRAY_AS parameter.
- intersection(JsObj, JsArray.TYPE) - Method in interface jsonvalues.JsObj
-
Returns the intersection of this object and another, defining characteristics like order and duplicates
occurrence in arrays with the given ARRAY_AS parameter.
- intersection_(JsArray) - Method in interface jsonvalues.JsArray
-
Returns the intersection of this array and another given as parameter considering both
JsArray.TYPE.LIST
lists
and applying recursively the intersection to those elements which are Json of the same type and
are located at the same position.
- intersection_(JsObj, JsArray.TYPE) - Method in interface jsonvalues.JsObj
-
Returns the intersection of this object and another given as parameter applying recursively
the intersection to those elements which are Json of the same type and are located at the same key
and defining characteristics like order and duplicates occurrence in arrays with the given ARRAY_AS
parameter.
- isArray() - Method in interface jsonvalues.JsElem
-
- isArray(Predicate<JsArray>) - Method in interface jsonvalues.JsElem
-
Returns true if this elem is a JsArray and satisfies the given predicate
- isBigDec() - Method in interface jsonvalues.JsElem
-
- isBigDec(Predicate<BigDecimal>) - Method in interface jsonvalues.JsElem
-
Returns true if this elem is a JsBigDec and satisfies the given predicate
- isBigInt() - Method in interface jsonvalues.JsElem
-
- isBigInt(Predicate<BigInteger>) - Method in interface jsonvalues.JsElem
-
Returns true if this elem is a JsBigInt and satisfies the given predicate
- isBool() - Method in interface jsonvalues.JsElem
-
- isDouble() - Method in interface jsonvalues.JsElem
-
- isDouble(DoublePredicate) - Method in interface jsonvalues.JsElem
-
Returns true if this elem is a JsDouble and satisfies the given predicate
- isEmpty() - Method in interface jsonvalues.Json
-
return true if there's no element in this json
- isEmpty() - Method in class jsonvalues.JsPath
-
Returns true if the path is empty.
- isFailure() - Method in class jsonvalues.Try
-
Returns true if the parsed string is a malformed json.
- isFailure() - Method in class jsonvalues.TryArr
-
Returns true if the parsed string is not a well-formed json array.
- isFailure() - Method in class jsonvalues.TryObj
-
Returns true if the parsed string is a malformed json object.
- isFalse() - Method in interface jsonvalues.JsElem
-
- isImmutable() - Method in interface jsonvalues.Json
-
- isIndex() - Method in class jsonvalues.Index
-
Returns true.
- isIndex() - Method in class jsonvalues.Key
-
Returns false.
- isIndex() - Method in interface jsonvalues.Position
-
Returns true if this position is an index.
- isIndex(IntPredicate) - Method in interface jsonvalues.Position
-
Returns true if this position is an index and its index tested on a given predicate is true.
- isInstant() - Method in interface jsonvalues.JsElem
-
- isInstant(Predicate<Instant>) - Method in interface jsonvalues.JsElem
-
Returns true if this elem is a JsStr that contains an Instant and satisfies the given predicate
- isInt() - Method in interface jsonvalues.JsElem
-
- isInt(IntPredicate) - Method in interface jsonvalues.JsElem
-
Returns true if this elem is a JsInt and satisfies the given predicate
- isIntegral() - Method in interface jsonvalues.JsElem
-
- isJson() - Method in interface jsonvalues.JsElem
-
- isJson(Predicate<Json<?>>) - Method in interface jsonvalues.JsElem
-
Returns true if this elem is a Json and satisfies the given predicate
- isKey() - Method in class jsonvalues.Index
-
Returns false.
- isKey() - Method in class jsonvalues.Key
-
Returns true.
- isKey() - Method in interface jsonvalues.Position
-
Returns true if this position is an key.
- isKey(Predicate<String>) - Method in interface jsonvalues.Position
-
Returns true if this position is a key and its name tested on a given predicate is true.
- isLocalDate(DateTimeFormatter) - Method in interface jsonvalues.JsElem
-
return true if this JsElem is a JsStr that contains a local date that can be parsed with the given formatter
- isLocalDate(DateTimeFormatter, Predicate<LocalDate>) - Method in interface jsonvalues.JsElem
-
return true if this JsElem is a JsStr that contains a local date that can be parsed with the given formatter
and satisfies the given predicate
- isLocalDateTime(DateTimeFormatter) - Method in interface jsonvalues.JsElem
-
return true if this JsElem is a JsStr that contains a local date-time that can be parsed with the given formatter
- isLocalDateTime(DateTimeFormatter, Predicate<LocalDateTime>) - Method in interface jsonvalues.JsElem
-
return true if this JsElem is a JsStr that contains a local date-time that can be parsed with the given formatter
and satisfies the given predicate
- isLong() - Method in interface jsonvalues.JsElem
-
- isLong(LongPredicate) - Method in interface jsonvalues.JsElem
-
Returns true if this elem is a JsLong and satisfies the given predicate
- isMutable() - Method in interface jsonvalues.Json
-
- isNotEmpty() - Method in interface jsonvalues.Json
-
return true if this json it not empty
- isNotEmpty() - Method in class jsonvalues.JsPath
-
- isNothing() - Method in interface jsonvalues.JsElem
-
- isNotJson() - Method in interface jsonvalues.JsElem
-
- isNotNothing() - Method in interface jsonvalues.JsElem
-
- isNotNull() - Method in interface jsonvalues.JsElem
-
- isNotNumber() - Method in interface jsonvalues.JsElem
-
- isNull() - Method in interface jsonvalues.JsElem
-
- isNumber() - Method in interface jsonvalues.JsElem
-
- isObj() - Method in interface jsonvalues.JsElem
-
- isObj(Predicate<JsObj>) - Method in interface jsonvalues.JsElem
-
Returns true if this elem is a JsObj and satisfies the given predicate
- isStr() - Method in interface jsonvalues.JsElem
-
- isStr(Predicate<String>) - Method in interface jsonvalues.JsElem
-
Returns true if this elem is a JsStr and satisfies the given predicate
- isSuccess() - Method in class jsonvalues.Try
-
Returns true if the parsed string is a well-formed json.
- isSuccess() - Method in class jsonvalues.TryArr
-
Returns true if the parsed string is a well-formed json array.
- isSuccess() - Method in class jsonvalues.TryObj
-
Returns true if the parsed string is a well-formed json object.
- isTrue() - Method in interface jsonvalues.JsElem
-
- MalformedJson - Exception in jsonvalues
-
Exception returned when a string can not be parsed into a Json or the json parsed has a different
type than the expected.
- map(DoubleUnaryOperator) - Method in class jsonvalues.JsDouble
-
Maps this json double into another one.
- map(Function<? super T, ? extends R>) - Method in interface jsonvalues.Trampoline
-
maps this trampoline which returns a T, into another one that returns a R.
- map(Function<T, T>) - Method in interface jsonvalues.Json
-
- map(IntUnaryOperator) - Method in class jsonvalues.JsInt
-
Maps this json integer into another one.
- map(LongUnaryOperator) - Method in class jsonvalues.JsLong
-
Maps this json long into another one.
- map(UnaryOperator<String>) - Method in class jsonvalues.JsStr
-
Maps this JsStr into another one.
- map(UnaryOperator<BigDecimal>) - Method in class jsonvalues.JsBigDec
-
Maps this JsBigDec into another one
- map(UnaryOperator<BigInteger>) - Method in class jsonvalues.JsBigInt
-
Maps this json bigint into another one.
- mapElem(UnaryOperator<JsElem>) - Method in class jsonvalues.JsPair
-
Returns a new pair with the same path and a new element result of applying the mapping function
- mapElems(Function<? super JsPair, ? extends JsElem>) - Method in interface jsonvalues.Json
-
Maps the values in the first level parse this json.
- mapElems(Function<? super JsPair, ? extends JsElem>, Predicate<? super JsPair>) - Method in interface jsonvalues.Json
-
Maps the values in the first level parse this json that satisfies a given predicate.
- mapElems_(Function<? super JsPair, ? extends JsElem>) - Method in interface jsonvalues.Json
-
Maps all the values parse this json.
- mapElems_(Function<? super JsPair, ? extends JsElem>, Predicate<? super JsPair>) - Method in interface jsonvalues.Json
-
Maps all the values parse this json that satisfies a given predicate.
- mapKeys(Function<? super JsPair, String>) - Method in interface jsonvalues.Json
-
Maps the keys in the first level parse this json.
- mapKeys(Function<? super JsPair, String>, Predicate<? super JsPair>) - Method in interface jsonvalues.Json
-
Maps the keys in the first level parse this json that satisfies a given predicate.
- mapKeys(UnaryOperator<String>) - Method in class jsonvalues.JsPath
-
Creates a new JsPath applying the given map function to every key of this path.
- mapKeys_(Function<? super JsPair, String>) - Method in interface jsonvalues.Json
-
Maps all the keys parse this json.
- mapKeys_(Function<? super JsPair, String>, Predicate<? super JsPair>) - Method in interface jsonvalues.Json
-
Maps all the keys parse this json that satisfies a given predicate.
- mapObjs(BiFunction<? super JsPath, ? super JsObj, JsObj>) - Method in interface jsonvalues.Json
-
Maps the jsons in the first level parse this json.
- mapObjs(BiFunction<? super JsPath, ? super JsObj, JsObj>, BiPredicate<? super JsPath, ? super JsObj>) - Method in interface jsonvalues.Json
-
Maps the jsons in the first level parse this json that satisfies a given predicate.
- mapObjs_(BiFunction<? super JsPath, ? super JsObj, JsObj>) - Method in interface jsonvalues.Json
-
Maps all the jsons parse this json.
- mapObjs_(BiFunction<? super JsPath, ? super JsObj, JsObj>, BiPredicate<? super JsPath, ? super JsObj>) - Method in interface jsonvalues.Json
-
Maps all the jsons parse this json that satisfies a given predicate.
- mapPath(UnaryOperator<JsPath>) - Method in class jsonvalues.JsPair
-
Returns a new pair with the same element and a new path result of applying the mapping function
- match(Function<String, T>, IntFunction<T>) - Method in interface jsonvalues.Position
-
Returns a new value applying pattern matching on the Position type.
- merge(String, JsElem, BiFunction<? super JsElem, ? super JsElem, ? extends JsElem>) - Method in interface jsonvalues.Json
-
If the given path is not already associated with a value or is associated with null, associates it with the given value.
- merge(JsPath, JsElem, BiFunction<? super JsElem, ? super JsElem, ? extends JsElem>) - Method in interface jsonvalues.Json
-
If the given path is not already associated with a value or is associated with null, associates it with the given value.
- minus(JsDouble) - Method in class jsonvalues.JsDouble
-
subtract this long from the specified one
- minus(JsInt) - Method in class jsonvalues.JsInt
-
subtract this integer from the specified one
- minus(JsLong) - Method in class jsonvalues.JsLong
-
subtract this long from the specified one
- more(Trampoline<Trampoline<T>>) - Static method in interface jsonvalues.Trampoline
-
- MULTISET - jsonvalues.JsArray.TYPE
-
The order of data items does not matter, but in this
case duplicate data items are permitted.
- objOrElse(Supplier<JsObj>) - Method in class jsonvalues.Try
-
Returns the computed JsObj if the parsed string is a well-formed json object, returning the JsObj
given by the supplier otherwise.
- objOrElseThrow() - Method in class jsonvalues.Try
-
Returns the computed JsObj if the parsed string is a well-formed json object, throwing a
MalformedJson exception otherwise.
- of(boolean) - Static method in class jsonvalues.JsBool
-
Static factory method to create a JsBool from a boolean primitive type.
- of(boolean, boolean...) - Static method in interface jsonvalues.JsArray
-
Returns an immutable array from one or more booleans.
- of(double) - Static method in class jsonvalues.JsDouble
-
Static factory method to create a JsDouble from a double primitive type.
- of(double, double...) - Static method in interface jsonvalues.JsArray
-
Returns an immutable array from one or more doubles.
- of(int) - Static method in class jsonvalues.Index
-
Returns a new instance witch represents the given index in an array.
- of(int) - Static method in class jsonvalues.JsInt
-
Static factory method to create a JsInt from an integer primitive type.
- of(int, int...) - Static method in interface jsonvalues.JsArray
-
Returns an immutable array from one or more integers.
- of(long) - Static method in class jsonvalues.JsLong
-
Static factory method to create a JsLong from a long primitive type.
- of(long, long...) - Static method in interface jsonvalues.JsArray
-
Returns an immutable array from one or more longs.
- of(String) - Static method in class jsonvalues.JsPath
-
- of(String) - Static method in class jsonvalues.JsStr
-
Static factory method to create a JsStr from a string.
- of(String) - Static method in class jsonvalues.Key
-
Returns a new instance which represents a key with the given name in a json object.
- of(String, boolean) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path-like string and the boolean.
- of(String, double) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path-like string and the double.
- of(String, int) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path-like string and the integer.
- of(String, long) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path-like string and the long.
- of(String, String) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path-like string and the string.
- of(String, String...) - Static method in interface jsonvalues.JsArray
-
Returns an immutable array from one or more strings.
- of(String, BigDecimal) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path-like string and the big decimal.
- of(String, BigInteger) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path-like string and the big integer.
- of(String, JsElem) - Static method in interface jsonvalues.JsObj
-
Returns an immutable one-element object.
- of(String, JsElem) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path-like string and the json element.
- of(String, JsElem, String, JsElem) - Static method in interface jsonvalues.JsObj
-
Returns a two-element immutable object.
- of(String, JsElem, String, JsElem, String, JsElem) - Static method in interface jsonvalues.JsObj
-
Returns a three-element immutable json object.
- of(String, JsElem, String, JsElem, String, JsElem, String, JsElem) - Static method in interface jsonvalues.JsObj
-
Returns a four-element immutable object.
- of(String, JsElem, String, JsElem, String, JsElem, String, JsElem, String, JsElem) - Static method in interface jsonvalues.JsObj
-
Returns a five-element immutable object.
- of(String, JsElem, String, JsElem, String, JsElem, String, JsElem, String, JsElem, String, JsElem) - Static method in interface jsonvalues.JsObj
-
Returns a six-element immutable object.
- of(BigDecimal) - Static method in class jsonvalues.JsBigDec
-
Static factory method to create a JsBigDec from a BigDecimal object.
- of(BigInteger) - Static method in class jsonvalues.JsBigInt
-
Static factory method to create a JsBigInt from BigInteger objects.
- of(Collection<? extends JsElem>) - Static method in interface jsonvalues.JsArray
-
Returns an immutable array from the collection of elements.
- of(Map<String, JsElem>) - Static method in interface jsonvalues.JsObj
-
Returns a immutable object from a map of elements.
- of(JsElem) - Static method in interface jsonvalues.JsArray
-
Returns an immutable one-element array.
- of(JsElem, JsElem) - Static method in interface jsonvalues.JsArray
-
Returns an immutable two-element array.
- of(JsElem, JsElem, JsElem) - Static method in interface jsonvalues.JsArray
-
Returns an immutable three-element array.
- of(JsElem, JsElem, JsElem, JsElem) - Static method in interface jsonvalues.JsArray
-
Returns an immutable four-element array.
- of(JsElem, JsElem, JsElem, JsElem, JsElem) - Static method in interface jsonvalues.JsArray
-
Returns an immutable five-element array.
- of(JsElem, JsElem, JsElem, JsElem, JsElem, JsElem...) - Static method in interface jsonvalues.JsArray
-
Returns an immutable array.
- of(JsPair, JsPair...) - Static method in interface jsonvalues.JsArray
-
Returns an immutable array from one or more pairs.
- of(JsPair, JsPair...) - Static method in interface jsonvalues.JsObj
-
Returns an immutable object from one or more pairs.
- of(JsPath, boolean) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path and the boolean.
- of(JsPath, double) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path and the double.
- of(JsPath, int) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path and the integer.
- of(JsPath, long) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path and the long.
- of(JsPath, String) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path and the string.
- of(JsPath, BigDecimal) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path and the big decimal.
- of(JsPath, BigInteger) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path and the big integer.
- of(JsPath, JsElem) - Static method in class jsonvalues.JsPair
-
Returns a json pair from the path and the json element.
- orElse(Supplier<JsArray>) - Method in class jsonvalues.TryArr
-
Returns the computed JsArray if the parsed string is a well-formed json array, returning the
JsArray given by the supplier otherwise.
- orElse(Supplier<JsObj>) - Method in class jsonvalues.TryObj
-
Returns the computed JsObj if the parsed string is a well-formed json object, returning the JsObj
given by the supplier otherwise.
- orElseThrow() - Method in class jsonvalues.Try
-
Returns the computed Json if the parsed string is a well-formed json, throwing a MalformedJson
exception otherwise.
- orElseThrow() - Method in class jsonvalues.TryArr
-
Returns the computed JsArray if the parsed string is a well-formed json array, throwing a MalformedJson
otherwise.
- orElseThrow() - Method in class jsonvalues.TryObj
-
Returns the computed JsObj if the parsed string is a well-formed json object, throwing an exception
otherwise.
- parse(String) - Static method in interface jsonvalues.JsArray
-
Tries to parse the string into an immutable array.
- parse(String) - Static method in interface jsonvalues.JsObj
-
Tries to parse the string into an immutable object.
- parse(String) - Static method in interface jsonvalues.Json
-
Tries to parse the string into an immutable json.
- parse(String, ParseOptions) - Static method in interface jsonvalues.JsArray
-
Tries to parse the string into an immutable array, performing some operations during the parsing.
- parse(String, ParseOptions) - Static method in interface jsonvalues.JsObj
-
Tries to parse the string into an immutable object, performing some operations during the parsing.
- parse(String, ParseOptions) - Static method in interface jsonvalues.Json
-
Tries to parse the string into an immutable json, performing some operations while the parsing.
- ParseOptions - Class in jsonvalues
-
Builder with different options to customize the parsing of a string into a json.
- ParseOptions() - Constructor for class jsonvalues.ParseOptions
-
- path - Variable in class jsonvalues.JsPair
-
the location of the element.
- plus(JsDouble) - Method in class jsonvalues.JsDouble
-
adds up this long to the specified one
- plus(JsInt) - Method in class jsonvalues.JsInt
-
adds up this integer to the specified one
- plus(JsLong) - Method in class jsonvalues.JsLong
-
adds up this long to the specified one
- Position - Interface in jsonvalues
-
Represents the location of a first-level element in a json, either a Key in a JsObj or an Index in
a JsArray.
- prepend(String, boolean, boolean...) - Method in interface jsonvalues.Json
-
Prepends one or more booleans, starting from the first, to the array located at the path in this
json.
- prepend(String, double, double...) - Method in interface jsonvalues.Json
-
Prepends one or more doubles, starting from the first, to the array located at the path in this
json.
- prepend(String, int, int...) - Method in interface jsonvalues.Json
-
Prepends one or more integers, starting from the first, to the array located at the path in this
json.
- prepend(String, long, long...) - Method in interface jsonvalues.Json
-
Prepends one or more longs, starting from the first, to the array located at the path in this
json.
- prepend(String, String, String...) - Method in interface jsonvalues.Json
-
Prepends one or more strings, starting from the first, to the array located at the path in this
json.
- prepend(String, JsElem) - Method in interface jsonvalues.Json
-
prepends one element to the array located at the path in this json.
- prepend(String, JsElem, JsElem...) - Method in interface jsonvalues.Json
-
Prepends one or more elements, starting from the first, to the array located at the path in this
json.
- prepend(JsElem, JsElem...) - Method in interface jsonvalues.JsArray
-
Adds one or more elements, starting from the last, to the front of this array.
- prepend(JsPath) - Method in class jsonvalues.JsPath
-
Creates a new JsPath prepending the given path to this path.
- prepend(JsPath, boolean, boolean...) - Method in interface jsonvalues.Json
-
prepends one or more booleans, starting from the first, to the array located at the path in this
json.
- prepend(JsPath, double, double...) - Method in interface jsonvalues.Json
-
prepends one or more doubles, starting from the first, to the array located at the path in this
json.
- prepend(JsPath, int, int...) - Method in interface jsonvalues.Json
-
prepends one or more integers, starting from the first, to the array located at the path in this
json.
- prepend(JsPath, long, long...) - Method in interface jsonvalues.Json
-
prepends one or more longs, starting from the first, to the array located at the path in this
json.
- prepend(JsPath, String, String...) - Method in interface jsonvalues.Json
-
Prepends one or more strings, starting from the first, to the array located at the path in this
json.
- prepend(JsPath, JsElem) - Method in interface jsonvalues.Json
-
prepends one element to the array located at the path in this json.
- prepend(JsPath, JsElem, JsElem...) - Method in interface jsonvalues.Json
-
prepends one or more elements, starting from the first, to the array located at the path in this
json.
- prependAll(String, JsArray) - Method in interface jsonvalues.Json
-
prepends all the elements of the array, starting from the head, to the array located at the path
in this json.
- prependAll(JsArray) - Method in interface jsonvalues.JsArray
-
Adds all the elements of the array, starting from the last, to the front of this array.
- prependAll(JsPath, JsArray) - Method in interface jsonvalues.Json
-
prepends all the elements of the array, starting from the head, to the array located at the path
in this json.
- prependAllIfPresent(String, Supplier<JsArray>) - Method in interface jsonvalues.Json
-
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.
- prependAllIfPresent(JsPath, Supplier<JsArray>) - Method in interface jsonvalues.Json
-
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.
- prependIfPresent(String, boolean, boolean...) - Method in interface jsonvalues.Json
-
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.
- prependIfPresent(String, double, double...) - Method in interface jsonvalues.Json
-
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.
- prependIfPresent(String, int, int...) - Method in interface jsonvalues.Json
-
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.
- prependIfPresent(String, long, long...) - Method in interface jsonvalues.Json
-
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.
- prependIfPresent(String, String, String...) - Method in interface jsonvalues.Json
-
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.
- prependIfPresent(String, Supplier<JsElem>) - Method in interface jsonvalues.Json
-
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.
- prependIfPresent(JsPath, boolean, boolean...) - Method in interface jsonvalues.Json
-
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.
- prependIfPresent(JsPath, double, double...) - Method in interface jsonvalues.Json
-
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.
- prependIfPresent(JsPath, int, int...) - Method in interface jsonvalues.Json
-
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.
- prependIfPresent(JsPath, long, long...) - Method in interface jsonvalues.Json
-
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.
- prependIfPresent(JsPath, String, String...) - Method in interface jsonvalues.Json
-
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.
- prependIfPresent(JsPath, Supplier<JsElem>) - Method in interface jsonvalues.Json
-
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.
- put(String, boolean) - Method in interface jsonvalues.Json
-
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.
- put(String, int) - Method in interface jsonvalues.Json
-
Inserts the integer number at the path in this json, replacing any existing element and filling with
JsNull
empty indexes in arrays when necessary.
- put(String, long) - Method in interface jsonvalues.Json
-
Inserts the long number at the path in this json, replacing any existing element and filling with
JsNull
empty indexes in arrays when necessary.
- put(String, String) - Method in interface jsonvalues.Json
-
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.
- put(String, BigDecimal) - Method in interface jsonvalues.Json
-
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.
- put(String, BigInteger) - Method in interface jsonvalues.Json
-
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.
- put(String, Function<? super JsElem, ? extends JsElem>) - Method in interface jsonvalues.Json
-
Inserts the element returned by the function at the path in this json, replacing any existing
element in the path and filling with
JsNull
empty indexes in arrays when
necessary.
- put(String, JsElem) - Method in interface jsonvalues.Json
-
Inserts the element at the path in this json, replacing any existing element and filling with
JsNull
empty
indexes in arrays when necessary.
- put(JsPath, Function<? super JsElem, ? extends JsElem>) - Method in interface jsonvalues.Json
-
Inserts the element returned by the function at the path in this json, replacing any existing element and filling with
JsNull
empty indexes in arrays when necessary.
- put(JsPath, JsElem) - Method in interface jsonvalues.Json
-
Inserts the element at the path in this json, replacing any existing element and filling with
JsNull
empty
indexes in arrays when necessary.
- putIf(Predicate<? super JsElem>, String, Function<? super JsElem, ? extends JsElem>) - Method in interface jsonvalues.Json
-
Inserts at the given path in this json, if the existing element satisfies the predicate, a new
element returned by the function.
- putIf(Predicate<? super JsElem>, JsPath, Function<? super JsElem, ? extends JsElem>) - Method in interface jsonvalues.Json
-
Inserts at the given path in this json, if the existing element satisfies the predicate, a new
element returned by the function.
- putIfAbsent(String, double) - Method in interface jsonvalues.Json
-
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.
- putIfAbsent(String, int) - Method in interface jsonvalues.Json
-
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.
- putIfAbsent(String, long) - Method in interface jsonvalues.Json
-
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.
- putIfAbsent(String, Supplier<? extends JsElem>) - Method in interface jsonvalues.Json
-
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.
- putIfAbsent(JsPath, double) - Method in interface jsonvalues.Json
-
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.
- putIfAbsent(JsPath, int) - Method in interface jsonvalues.Json
-
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.
- putIfAbsent(JsPath, long) - Method in interface jsonvalues.Json
-
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.
- putIfAbsent(JsPath, Supplier<? extends JsElem>) - Method in interface jsonvalues.Json
-
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.
- putIfPresent(String, double) - Method in interface jsonvalues.Json
-
Inserts at the given path in this json, if some element is present, the specified double.
- putIfPresent(String, int) - Method in interface jsonvalues.Json
-
Inserts at the given path in this json, if some element is present, the specified integer.
- putIfPresent(String, long) - Method in interface jsonvalues.Json
-
Inserts at the given path in this json, if some element is present, the specified long.
- putIfPresent(String, Function<? super JsElem, ? extends JsElem>) - Method in interface jsonvalues.Json
-
Inserts at the given path in this json, if some element is present, the element returned by the
function.
- putIfPresent(JsPath, double) - Method in interface jsonvalues.Json
-
Inserts at the given path in this json, if some element is present, the specified double.
- putIfPresent(JsPath, int) - Method in interface jsonvalues.Json
-
Inserts at the given path in this json, if some element is present, the specified integer.
- putIfPresent(JsPath, long) - Method in interface jsonvalues.Json
-
Inserts at the given path in this json, if some element is present, the specified long.
- putIfPresent(JsPath, Function<? super JsElem, ? extends JsElem>) - Method in interface jsonvalues.Json
-
Inserts at the given path in this json, if some element is present, the element returned by the
function.
- tail() - Method in interface jsonvalues.JsArray
-
Returns a json array consisting of all elements of this array except the first one.
- tail() - Method in class jsonvalues.JsPath
-
- tail(String) - Method in interface jsonvalues.JsObj
-
Returns a new object with all the entries of this json object except the one with the given key.
- test(DoublePredicate) - Method in class jsonvalues.JsDouble
-
Tests the value of this json double on a predicate.
- test(IntPredicate) - Method in class jsonvalues.JsInt
-
Tests the value of this json integer on a predicate.
- test(LongPredicate) - Method in class jsonvalues.JsLong
-
Tests the value of this json long on a predicate.
- test(Predicate<String>) - Method in class jsonvalues.JsStr
-
Tests this JsStr on a predicate.
- test(Predicate<BigDecimal>) - Method in class jsonvalues.JsBigDec
-
Tests the value of this json bigdec on a predicate
- test(Predicate<BigInteger>) - Method in class jsonvalues.JsBigInt
-
Tests the value of this json bigint on a predicate.
- times(JsDouble) - Method in class jsonvalues.JsDouble
-
multiplies this long by the specified one
- times(JsElem) - Method in interface jsonvalues.Json
-
- times(JsInt) - Method in class jsonvalues.JsInt
-
multiplies this integer by the specified one
- times(JsLong) - Method in class jsonvalues.JsLong
-
multiplies this long by the specified one
- times_(JsElem) - Method in interface jsonvalues.Json
-
- toImmutable() - Method in interface jsonvalues.Json
-
Converts this json into immutable if it's mutable, returning this same instance otherwise.
- toMutable() - Method in interface jsonvalues.Json
-
Converts this json into mutable if it's immutable, returning this same instance otherwise.
- toOptional() - Method in class jsonvalues.Try
-
Returns the computed Json wrapped in an optional if the parsed string is a well-formed json,
returning an empty optional otherwise.
- toOptional() - Method in class jsonvalues.TryArr
-
Returns the computed JsArray wrapped in an optional if the parsed string is a well-formed json
array, returning an empty optional otherwise.
- toOptional() - Method in class jsonvalues.TryObj
-
Returns the computed json object wrapped in an optional if the parsed string is a well-formed
json object, returning an empty optional otherwise.
- toString() - Method in class jsonvalues.Index
-
Returns the value of the index as a string.
- toString() - Method in class jsonvalues.JsBigDec
-
- toString() - Method in class jsonvalues.JsBigInt
-
- toString() - Method in class jsonvalues.JsBool
-
- toString() - Method in class jsonvalues.JsDouble
-
- toString() - Method in class jsonvalues.JsInt
-
- toString() - Method in class jsonvalues.JsLong
-
- toString() - Method in class jsonvalues.JsNothing
-
- toString() - Method in class jsonvalues.JsNull
-
- toString() - Method in class jsonvalues.JsPair
-
- toString() - Method in class jsonvalues.JsPath
-
Returns a string representation of this path where key names are single quoted when they are numbers,
and encoded in application/x-www-form-urlencoded format when they are strings, and indexes are left
as they are, being each position separated from each other with a dot.
- toString() - Method in class jsonvalues.JsStr
-
Returns the string representation parse this json string which is its value quoted.
- toString() - Method in class jsonvalues.Key
-
Returns the name of the key.
- Trampoline<T> - Interface in jsonvalues
-
Trampolines allow to define recursive algorithms by iterative loops without blowing the stack when
methods implementations are tail recursive.
- TRUE - Static variable in class jsonvalues.JsBool
-
The singleton true value.
- Try - Class in jsonvalues
-
Computation that parses a string into a Json and may either result in a MalformedJson exception
or a successfully parsed json.
- TryArr - Class in jsonvalues
-
Computation that parses a string into a JsArray and may either result in a MalformedJson exception
or a successfully parsed array.
- TryObj - Class in jsonvalues
-
Computation that parses a string into a JsObj and may either result in a MalformedJson exception
or a successfully parsed object.
- _collector_() - Static method in interface jsonvalues.JsArray
-
Returns a collector that accumulates the pairs from a stream into a mutable array.
- _collector_() - Static method in interface jsonvalues.JsObj
-
Returns a collector that accumulates the pairs from a stream into an mutable object.
- _empty_() - Static method in interface jsonvalues.JsArray
-
Returns a mutable empty array.
- _empty_() - Static method in interface jsonvalues.JsObj
-
Returns a mutable empty object.
- _of_(boolean, boolean...) - Static method in interface jsonvalues.JsArray
-
Returns a mutable array from one or more booleans.
- _of_(double, double...) - Static method in interface jsonvalues.JsArray
-
Returns a mutable array from one or more doubles.
- _of_(int, int...) - Static method in interface jsonvalues.JsArray
-
Returns a mutable array from one or more integers
- _of_(long, long...) - Static method in interface jsonvalues.JsArray
-
Returns a mutable array from one or more longs.
- _of_(String, String...) - Static method in interface jsonvalues.JsArray
-
Returns a mutable array from one or more strings.
- _of_(String, JsElem) - Static method in interface jsonvalues.JsObj
-
Returns a mutable one-pair object.
- _of_(String, JsElem, String, JsElem) - Static method in interface jsonvalues.JsObj
-
Returns a mutable two-pair object.
- _of_(String, JsElem, String, JsElem, String, JsElem) - Static method in interface jsonvalues.JsObj
-
Returns a mutable three-pair object.
- _of_(String, JsElem, String, JsElem, String, JsElem, String, JsElem) - Static method in interface jsonvalues.JsObj
-
Returns a mutable four-pair object.
- _of_(String, JsElem, String, JsElem, String, JsElem, String, JsElem, String, JsElem) - Static method in interface jsonvalues.JsObj
-
Returns a mutable five-pair object.
- _of_(String, JsElem, String, JsElem, String, JsElem, String, JsElem, String, JsElem, String, JsElem) - Static method in interface jsonvalues.JsObj
-
Returns a mutable six-pair object.
- _of_(List<JsElem>) - Static method in interface jsonvalues.JsArray
-
Returns a mutable array copying the reference of the collection of elements.
- _of_(Map<String, JsElem>) - Static method in interface jsonvalues.JsObj
-
Returns a mutable object from a map of elements.
- _of_(JsElem) - Static method in interface jsonvalues.JsArray
-
Returns a mutable one-element array.
- _of_(JsElem, JsElem) - Static method in interface jsonvalues.JsArray
-
Returns a mutable two-element array.
- _of_(JsElem, JsElem, JsElem) - Static method in interface jsonvalues.JsArray
-
Returns a mutable three-element array.
- _of_(JsElem, JsElem, JsElem, JsElem) - Static method in interface jsonvalues.JsArray
-
Returns a mutable four-element array.
- _of_(JsElem, JsElem, JsElem, JsElem, JsElem) - Static method in interface jsonvalues.JsArray
-
Returns a mutable five-element array.
- _of_(JsElem, JsElem, JsElem, JsElem, JsElem, JsElem...) - Static method in interface jsonvalues.JsArray
-
Returns a mutable array containing an arbitrary number of elements.
- _of_(JsPair, JsPair...) - Static method in interface jsonvalues.JsArray
-
Returns a mutable array from one or more pairs.
- _of_(JsPair, JsPair...) - Static method in interface jsonvalues.JsObj
-
Returns a mutable object from one or more pairs.
- _parse_(String) - Static method in interface jsonvalues.JsArray
-
Tries to parse the string into a mutable json array.
- _parse_(String) - Static method in interface jsonvalues.JsObj
-
Tries to parse the string into a mutable json object.
- _parse_(String) - Static method in interface jsonvalues.Json
-
Tries to parse the string into a mutable json.
- _parse_(String, ParseOptions) - Static method in interface jsonvalues.JsArray
-
Tries to parse the string into a mutable array, performing some operations while the parsing.
- _parse_(String, ParseOptions) - Static method in interface jsonvalues.JsObj
-
Tries to parse the string into an mutable object, performing some operations while the parsing.
- _parse_(String, ParseOptions) - Static method in interface jsonvalues.Json
-
Tries to parse the string into a mutable json, performing some operations while the parsing.