- 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, 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, Function<? super JsArray, JsArray>) - Method in interface jsonvalues.Json
-
Appends all the elements of the array computed by the function, 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 function is not invoked.
- appendAllIfPresent(JsPath, Function<? super JsArray, JsArray>) - Method in interface jsonvalues.Json
-
Appends all the elements of the array computed by the function, 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 function is not invoked.
- appendIfPresent(String, Supplier<JsElem>) - Method in interface jsonvalues.Json
-
Appends 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.
- appendIfPresent(JsPath, Supplier<JsElem>) - Method in interface jsonvalues.Json
-
Appends 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.
- 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.
- collector() - Static method in interface jsonvalues.JsArray
-
Returns a collector that accumulates the pairs from a stream into an immutable array.
- collector() - Static method in interface jsonvalues.JsObj
-
Returns a collector that accumulates the pairs from a stream into an immutable object.
- compareTo(JsBigDec) - Method in class jsonvalues.JsBigDec
-
Compares two JsBigDec
objects numerically
- compareTo(JsBigInt) - Method in class jsonvalues.JsBigInt
-
Compares two JsBigInt
objects numerically.
- compareTo(JsDouble) - Method in class jsonvalues.JsDouble
-
Compares two JsDouble
objects numerically.
- compareTo(JsInt) - Method in class jsonvalues.JsInt
-
Compares two JsInt
objects numerically.
- compareTo(JsLong) - Method in class jsonvalues.JsLong
-
Compares two JsLong
objects numerically.
- compareTo(JsPath) - Method in class jsonvalues.JsPath
-
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.
- compareTo(JsStr) - Method in class jsonvalues.JsStr
-
Compares two JsStr
objects lexicographically.
- compareTo(Position) - Method in class jsonvalues.Index
-
Compares this index with another given position.
- compareTo(Position) - Method in class jsonvalues.Key
-
compares this key with another given position.
- compareTo(Position) - Method in interface jsonvalues.Position
- complete() - Method in interface jsonvalues.Trampoline
-
- containsElem(JsElem) - Method in interface jsonvalues.Json
-
Returns true if this json contains the given element in the first level.
- containsElem_(JsElem) - Method in interface jsonvalues.Json
-
Returns true if this json or any of its elements, contains the given element.
- containsPath(String) - Method in interface jsonvalues.Json
-
Returns true if an element exists in this json at the given path.
- containsPath(JsPath) - Method in interface jsonvalues.Json
-
Returns true if an element exists in this json at the given path.
- elem - Variable in class jsonvalues.JsPair
-
the json element.
- empty() - Static method in interface jsonvalues.JsArray
-
Returns the immutable empty array.
- empty() - Static method in interface jsonvalues.JsObj
-
Returns the immutable empty object.
- empty() - Static method in class jsonvalues.JsPath
-
Returns the singleton empty path.
- equals(Object) - Method in class jsonvalues.Index
-
Returns true if that is an index and both have the same value.
- equals(Object) - Method in class jsonvalues.JsBigDec
-
Indicates whether some other object is "equal to" this json big decimal.
- equals(Object) - Method in class jsonvalues.JsBigInt
-
Indicates whether some other object is "equal to" this json big integer.
- equals(Object) - Method in class jsonvalues.JsBool
-
Indicates whether some other object is "equal to" this json boolean.
- equals(Object) - Method in class jsonvalues.JsDouble
-
Indicates whether some other object is "equal to" this json double.
- equals(Object) - Method in class jsonvalues.JsInt
-
Indicates whether some other object is "equal to" this json integer.
- equals(Object) - Method in class jsonvalues.JsLong
-
Indicates whether some other object is "equal to" this json long.
- equals(Object) - Method in class jsonvalues.JsNothing
-
- equals(Object) - Method in class jsonvalues.JsNull
-
- equals(Object) - Method in class jsonvalues.JsPair
-
Returns true if that is a pair and both represents the same element at the same location.
- equals(Object) - Method in class jsonvalues.JsPath
-
Indicates whether some other object is "equal to" this path
- equals(Object) - Method in class jsonvalues.JsStr
-
Indicates whether some other object is "equal to" this json string.
- equals(Object) - Method in class jsonvalues.Key
-
Returns true if that is a key and both have the same name.
- equals(JsArray, JsArray.TYPE) - Method in interface jsonvalues.JsArray
-
Returns true if this array is equal to the given as a parameter.
- equals(JsElem, JsArray.TYPE) - Method in interface jsonvalues.Json
-
- equals(JsObj, JsArray.TYPE) - Method in interface jsonvalues.JsObj
-
return true if this obj is equal to the given as a parameter.
- hashCode() - Method in class jsonvalues.Index
-
Returns the hashcode of this index.
- hashCode() - Method in class jsonvalues.JsBigDec
-
Returns the hashcode of this json big decimal
- hashCode() - Method in class jsonvalues.JsBigInt
-
Returns the hashcode of this json big integer.
- hashCode() - Method in class jsonvalues.JsBool
-
Returns the hashcode of this json boolean.
- hashCode() - Method in class jsonvalues.JsDouble
-
Returns the hashcode of this json double.
- hashCode() - Method in class jsonvalues.JsInt
-
Returns the hashcode of this json integer.
- hashCode() - Method in class jsonvalues.JsLong
-
Returns the hashcode of this json long.
- hashCode() - Method in class jsonvalues.JsNothing
-
Returns the hashcode of this JsNothing.
- hashCode() - Method in class jsonvalues.JsNull
-
Returns the hashcode of this json null
- hashCode() - Method in class jsonvalues.JsPair
-
Returns the hashcode of this pair.
- hashCode() - Method in class jsonvalues.JsPath
-
Returns the hashcode of this path
- hashCode() - Method in class jsonvalues.JsStr
-
Returns the hashcode of this json string.
- hashCode() - Method in class jsonvalues.Key
-
Returns the hashcode of this key.
- head() - Method in interface jsonvalues.JsArray
-
Returns the first element of this array.
- head() - Method in interface jsonvalues.JsObj
-
Returns a pair with an arbitrary key of this object and its associated element.
- head() - Method in class jsonvalues.JsPath
-
Returns the head of this path if it's not empty, throwing an exception otherwise.
- 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
-
- JsArray - Interface in jsonvalues
-
Represents a json array, which is an ordered list of elements.
- JsArray.TYPE - Enum in jsonvalues
-
Type of arrays: SET, MULTISET or LIST.
- JsBigDec - Class in jsonvalues
-
Represents an immutable json number of type BigDecimal.
- JsBigInt - Class in jsonvalues
-
Represents an immutable json number of type BigInteger.
- JsBool - Class in jsonvalues
-
Represents an immutable json boolean.
- JsDouble - Class in jsonvalues
-
Represents an immutable json number of type double.
- JsElem - Interface in jsonvalues
-
Represents a json element of any type.
- JsInt - Class in jsonvalues
-
Represents an immutable json number of type integer.
- JsLong - Class in jsonvalues
-
Represents an immutable json number of type long.
- JsNothing - Class in jsonvalues
-
It's a special json element that represents 'nothing'.
- JsNull - Class in jsonvalues
-
Represents null, which a valid json value.
- JsNumber - Interface in jsonvalues
-
Represents an immutable json number.
- JsObj - Interface in jsonvalues
-
Represents a json object, which is an unordered set of name/element pairs.
- Json<T extends Json<T>> - Interface in jsonvalues
-
Represents a json of type T, where T is the type of the container, either a JsObj or a JsArray.
- jsonvalues - package jsonvalues
-
json-values is a one-package and zero-dependency library to work with jsons in a declarative and functional way.
- JsPair - Class in jsonvalues
-
Immutable pair which represents a JsElem of a Json and its JsPath location: (path, element).
- JsPath - Class in jsonvalues
-
Represents the full path location of an element in a json.
- JsStr - Class in jsonvalues
-
Represents an immutable json string.
- 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<JsPair, ? extends JsElem>) - Method in interface jsonvalues.Json
-
Maps the values in the first level parse this json.
- mapElems(Function<JsPair, ? extends JsElem>, Predicate<JsPair>) - Method in interface jsonvalues.Json
-
Maps the values in the first level parse this json that satisfies a given predicate.
- mapElems_(Function<JsPair, ? extends JsElem>) - Method in interface jsonvalues.Json
-
Maps all the values parse this json.
- mapElems_(Function<JsPair, ? extends JsElem>, Predicate<JsPair>) - Method in interface jsonvalues.Json
-
Maps all the values parse this json that satisfies a given predicate.
- mapKeys(Function<JsPair, String>) - Method in interface jsonvalues.Json
-
Maps the keys in the first level parse this json.
- mapKeys(Function<JsPair, String>, Predicate<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<JsPair, String>) - Method in interface jsonvalues.Json
-
Maps all the keys parse this json.
- mapKeys_(Function<JsPair, String>, Predicate<JsPair>) - Method in interface jsonvalues.Json
-
Maps all the keys parse this json that satisfies a given predicate.
- mapObjs(BiFunction<JsPath, JsObj, JsObj>) - Method in interface jsonvalues.Json
-
Maps the jsons in the first level parse this json.
- mapObjs(BiFunction<JsPath, JsObj, JsObj>, BiPredicate<JsPath, JsObj>) - Method in interface jsonvalues.Json
-
Maps the jsons in the first level parse this json that satisfies a given predicate.
- mapObjs_(BiFunction<JsPath, JsObj, JsObj>) - Method in interface jsonvalues.Json
-
Maps all the jsons parse this json.
- mapObjs_(BiFunction<JsPath, JsObj, JsObj>, BiPredicate<JsPath, 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.
- 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.
- 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, 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, 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, Function<? super JsArray, JsArray>) - Method in interface jsonvalues.Json
-
Prepends all the elements of the array computed by the function, 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 function is not invoked.
- prependAllIfPresent(JsPath, Function<? super JsArray, JsArray>) - Method in interface jsonvalues.Json
-
Prepends all the elements of the array computed by the function, 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 function is not invoked.
- 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, 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, 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, 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, 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, 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(JsElem) - Method in interface jsonvalues.Json
-
- 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.