A B C D E F G H I J K L M N O P R S T U V W X _
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accept(Consumer<JsElem>, Consumer<JsObj>, Consumer<JsArray>) - Static method in class jsonvalues.MatchExp
-
Declarative way of consuming an element based on its type
- 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.
B
- bigIntegerExact() - Method in class jsonvalues.JsBigDec
-
Returns the value of this bigdecimal; or an empty optional if the value overflows an
biginteger
. - bigIntegerExact() - Method in class jsonvalues.JsDouble
-
Converts this
double
to aBigInteger
, checking for lost information. - bounce() - Method in interface jsonvalues.Trampoline
- builder() - Static method in class jsonvalues.ParseOptions
-
static factory method to create a builder to customize the parsing of a string into a json.
C
- 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
- consumeIf(Predicate<JsPair>, Consumer<JsPair>) - Method in class jsonvalues.JsPair
-
Consumes this pair if it's evaluated to true o a given predicate
- 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.
D
- dec() - Method in class jsonvalues.JsPath
-
Returns a new path decrementing the last index by one, throwing an UnsupportedOperationException if the last Position is not an index
- done(T) - Static method in interface jsonvalues.Trampoline
- doubleValueExact() - Method in class jsonvalues.JsBigDec
-
Returns the value of this bigdecimal; or an empty optional if the value overflows an
double
.
E
- 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.
- endsWith(String) - Method in class jsonvalues.JsPath
-
returns true if this path ends with the given path-like string
- endsWith(JsPath) - Method in class jsonvalues.JsPath
-
returns true if this path ends with the given 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
-
Returns true if that is the singleton
JsNothing.NOTHING
. - equals(Object) - Method in class jsonvalues.JsNull
-
Returns true if that is the singleton
JsNull.NULL
. - 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(JsBigDec) - Method in class jsonvalues.JsBigInt
-
returns true if this bigint and the specified bigdecimal represent the same number
- equals(JsBigDec) - Method in class jsonvalues.JsDouble
-
returns true if this double and the specified bigdecimal represent the same number
- equals(JsBigDec) - Method in class jsonvalues.JsInt
-
returns true if this integer and the specified bigdecimal represent the same number
- equals(JsBigDec) - Method in class jsonvalues.JsLong
-
returns true if this long and the specified bigdecimal represent the same number
- equals(JsBigInt) - Method in class jsonvalues.JsBigDec
-
returns true if this bigdecimal and the specified biginteger represent the same number
- equals(JsBigInt) - Method in class jsonvalues.JsDouble
-
returns true if this double and the specified biginteger represent the same number
- equals(JsBigInt) - Method in class jsonvalues.JsInt
-
returns true if this integer and the specified biginteger represent the same number
- equals(JsBigInt) - Method in class jsonvalues.JsLong
-
returns true if this long and the specified biginteger represent the same number
- equals(JsDouble) - Method in class jsonvalues.JsBigDec
-
returns true if this bigdecimal and the specified double represent the same number
- equals(JsDouble) - Method in class jsonvalues.JsBigInt
-
returns true if this bigint and the specified double represent the same number
- equals(JsDouble) - Method in class jsonvalues.JsInt
-
returns true if this integer and the specified double represent the same number
- equals(JsDouble) - Method in class jsonvalues.JsLong
-
returns true if this long and the specified double represent the same number
- equals(JsElem, JsArray.TYPE) - Method in interface jsonvalues.Json
- equals(JsInt) - Method in class jsonvalues.JsBigDec
-
returns true if this bigdecimal and the specified integer represent the same number
- equals(JsInt) - Method in class jsonvalues.JsBigInt
-
returns true if this biginteger and the specified integer represent the same number
- equals(JsInt) - Method in class jsonvalues.JsDouble
-
returns true if this double and the specified integer represent the same number
- equals(JsInt) - Method in class jsonvalues.JsLong
-
returns true if this long and the specified integer represent the same number
- equals(JsLong) - Method in class jsonvalues.JsBigDec
-
returns true if this bigdecimal and the specified long represent the same number
- equals(JsLong) - Method in class jsonvalues.JsBigInt
-
returns true if this bigint and the specified long represent the same number
- equals(JsLong) - Method in class jsonvalues.JsDouble
-
returns true if this double and the specified long represent the same number
- equals(JsLong) - Method in class jsonvalues.JsInt
-
returns true if this integer and the specified long represent the same number
- equals(JsObj, JsArray.TYPE) - Method in interface jsonvalues.JsObj
-
return true if this obj is equal to the given as a parameter.
F
- FALSE - Static variable in class jsonvalues.JsBool
-
The singleton false value.
- fields() - Method in interface jsonvalues.JsObj
-
Returns a set containing each key fo this object.
- filterElems(Predicate<? super JsPair>) - Method in interface jsonvalues.Json
-
Filters the pairs of elements in the first level of this json, removing those that don't ifPredicateElse the predicate.
- filterElems_(Predicate<? super JsPair>) - Method in interface jsonvalues.Json
-
Filters all the pairs of elements of this json, removing those that don't ifPredicateElse the predicate.
- filterKeys(Predicate<? super JsPair>) - Method in interface jsonvalues.Json
-
Filters the keys in the first level parse this json, removing those that don't ifPredicateElse the predicate.
- filterKeys_(Predicate<? super JsPair>) - Method in interface jsonvalues.Json
-
Filters all the keys parse this json, removing those that don't ifPredicateElse the predicate.
- filterObjs(BiPredicate<? super JsPath, ? super JsObj>) - Method in interface jsonvalues.Json
-
Filters the pair of jsons in the first level parse this json, removing those that don't ifPredicateElse the predicate.
- filterObjs_(BiPredicate<? super JsPath, ? super JsObj>) - Method in interface jsonvalues.Json
-
Filters all the pair of jsons parse this json, removing those that don't ifPredicateElse the predicate.
- flatMap(Function<? super T, ? extends Trampoline<R>>) - Method in interface jsonvalues.Trampoline
-
map this trampoline which returns a T, into another one that returns a R.
- fromIndex(int) - Static method in class jsonvalues.JsPath
-
returns a path from an index
- fromKey(String) - Static method in class jsonvalues.JsPath
-
returns a path from a key
G
- get() - Method in interface jsonvalues.Trampoline
-
Gets a result
- get(String) - Method in interface jsonvalues.Json
-
Returns the element located at the given path or
JsNothing
if it doesn't exist. - get(JsPath) - Method in interface jsonvalues.Json
-
Returns the element located at the given path or
JsNothing
if it doesn't exist. - get(Position) - Method in interface jsonvalues.Json
-
Returns the element located at the key or index specified by the given position or
JsNothing
if it doesn't exist. - getArray(String) - Method in interface jsonvalues.Json
-
Returns the array located at the given path as a big decimal or
Optional.empty()
if it doesn't exist or it's not an array. - getArray(JsPath) - Method in interface jsonvalues.Json
-
Returns the array located at the given path or
Optional.empty()
if it doesn't exist or it's not an array. - getBigDecimal(String) - Method in interface jsonvalues.Json
-
Returns the big decimal located at the given path as a big decimal or
Optional.empty()
if it doesn't exist or it's not a decimal number. - getBigDecimal(JsPath) - Method in interface jsonvalues.Json
-
Returns the big decimal located at the given path as a big decimal or
Optional.empty()
if it doesn't exist or it's not a decimal number. - getBigInt(String) - Method in interface jsonvalues.Json
-
Returns the big integer located at the given path as a big integer or
Optional.empty()
if it doesn't exist or it's not an integral number. - getBigInt(JsPath) - Method in interface jsonvalues.Json
-
Returns the big integer located at the given path as a big integer or
Optional.empty()
if it doesn't exist or it's not an integral number. - getBool(String) - Method in interface jsonvalues.Json
-
Returns the boolean located at the given path or
Optional.empty()
if it doesn't exist. - getBool(JsPath) - Method in interface jsonvalues.Json
-
Returns the boolean located at the given path or
Optional.empty()
if it doesn't exist. - getDouble(String) - Method in interface jsonvalues.Json
-
Returns the decimal number located at the given path as a double or
OptionalDouble.empty()
if it doesn't exist or it's not a decimal number. - getDouble(JsPath) - Method in interface jsonvalues.Json
-
Returns the decimal number located at the given path as a double or
OptionalDouble.empty()
if it doesn't exist or it's not a decimal number. - getInt(String) - Method in interface jsonvalues.Json
-
Returns the integral number located at the given path as an integer or
OptionalInt.empty()
if it doesn't exist or it's not an integral number or it's an integral number but doesn't fit in an integer. - getInt(JsPath) - Method in interface jsonvalues.Json
-
Returns the integral number located at the given path as an integer or
OptionalInt.empty()
if it doesn't exist or it's not an integral number or it's an integral number but doesn't fit in an integer. - getLong(String) - Method in interface jsonvalues.Json
-
Returns the integral number located at the given path as a long or
OptionalLong.empty()
if it doesn't exist or it's not an integral number or it's an integral number but doesn't fit in a long. - getLong(JsPath) - Method in interface jsonvalues.Json
-
Returns the integral number located at the given path as a long or
OptionalLong.empty()
if it doesn't exist or it's not an integral number or it's an integral number but doesn't fit in a long. - getObj(String) - Method in interface jsonvalues.Json
-
Returns the object located at the given path or
Optional.empty()
if it doesn't exist or it's not an object. - getObj(JsPath) - Method in interface jsonvalues.Json
-
Returns the object located at the given path or
Optional.empty()
if it doesn't exist or it's not an object. - getStr(String) - Method in interface jsonvalues.Json
-
Returns the string located at the given path or
Optional.empty()
if it doesn't exist or it's not an string. - getStr(JsPath) - Method in interface jsonvalues.Json
-
Returns the string located at the given path or
Optional.empty()
if it doesn't exist or it's not an string.
H
- 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.
I
- ifArrElse(Function<? super JsArray, T>, Function<? super JsElem, T>) - Static method in class jsonvalues.MatchExp
-
return a matching expression to extract arrays out of json elements.
- ifBoolElse(Function<? super Boolean, T>, Function<? super JsElem, T>) - Static method in class jsonvalues.MatchExp
-
return a matching expression to extract booleans out of json elements.
- ifDecimalElse(DoubleFunction<T>, Function<BigDecimal, T>, Function<? super JsElem, T>) - Static method in class jsonvalues.MatchExp
-
return a matching expression to extract decimal numbers out of json elements.
- ifElse(Predicate<? super JsPair>, Function<? super JsPair, R>, Function<? super JsPair, R>) - Method in class jsonvalues.JsPair
-
Declarative way of implementing an if-else.
- 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.
- ifEmptyElse(Trampoline<T>, BiFunction<Map.Entry<String, JsElem>, JsObj, Trampoline<T>>) - Method in interface jsonvalues.JsObj
- ifEmptyElse(Trampoline<T>, BiFunction<JsElem, JsArray, Trampoline<T>>) - Method in interface jsonvalues.JsArray
- ifIntegralElse(IntFunction<T>, LongFunction<T>, Function<BigInteger, T>, Function<? super JsElem, T>) - Static method in class jsonvalues.MatchExp
-
return a matching expression to extract integral numbers out of json elements.
- ifJsonElse(BiFunction<JsPath, JsObj, T>, BiFunction<JsPath, JsArray, T>, BiFunction<JsPath, JsElem, T>) - Method in class jsonvalues.JsPair
-
Declarative way of implementing an if(obj)return T; else if(array) return T; else return T; where T is computed by the given functions
- ifJsonElse(BiFunction<JsPath, Json<?>, T>, BiFunction<JsPath, JsElem, T>) - Method in class jsonvalues.JsPair
-
Declarative way of implementing an if(json)return T; else return T; where T is computed by the given functions
- ifJsonElse(Function<? super JsObj, T>, Function<? super JsArray, T>, Function<? super JsElem, T>) - Static method in class jsonvalues.MatchExp
-
return a matching expression to extract objs and arrays out of json elements.
- ifJsonElse(Function<Json<?>, T>, Function<JsElem, T>) - Static method in class jsonvalues.MatchExp
-
return a matching expression to extract jsons out of json elements.
- ifNothingElse(Supplier<T>, Function<JsElem, T>) - Static method in class jsonvalues.MatchExp
-
return a matching expression to extract JsNothing out of json elements.
- ifObjElse(Function<? super JsObj, T>, Function<? super JsElem, T>) - Static method in class jsonvalues.MatchExp
-
return a matching expression to extract json objects out of json elements.
- 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.
- ifPredicateElse(Predicate<JsElem>, Function<JsElem, T>, Function<JsElem, T>) - Static method in class jsonvalues.MatchExp
-
declarative way of implementing an if-else using high order functions
- ifStrElse(Function<? super String, T>, Function<? super JsElem, T>) - Static method in class jsonvalues.MatchExp
-
returns a matching expression to extract strings out of json elements.
- 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.
- InternalError - Exception in jsonvalues
-
Exception that models an internal error made by a developer.
- 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.
- intValueExact() - Method in class jsonvalues.JsBigDec
-
Returns the value of this bigdecimal; or an empty optional if the value overflows an
int
. - intValueExact() - Method in class jsonvalues.JsBigInt
-
Returns the value of this biginteger; or an empty optional if the value overflows an
int
. - intValueExact() - Method in class jsonvalues.JsLong
-
Returns the value of this long; or an empty optional if the value overflows an
int
. - isArray() - Method in interface jsonvalues.JsArray
- isArray() - Method in class jsonvalues.JsBool
- isArray() - Method in interface jsonvalues.JsElem
- isArray() - Method in class jsonvalues.JsNothing
- isArray() - Method in class jsonvalues.JsNull
- isArray() - Method in interface jsonvalues.JsNumber
- isArray() - Method in interface jsonvalues.JsObj
- isArray() - Method in class jsonvalues.JsStr
- isArray(Predicate<JsArray>) - Method in interface jsonvalues.JsElem
-
Returns true if this elem is a JsArray and satisfies the given predicate
- isBigDec() - Method in class jsonvalues.JsBigDec
- isBigDec() - Method in class jsonvalues.JsBigInt
- isBigDec() - Method in class jsonvalues.JsBool
- isBigDec() - Method in class jsonvalues.JsDouble
- isBigDec() - Method in interface jsonvalues.JsElem
- isBigDec() - Method in class jsonvalues.JsInt
- isBigDec() - Method in class jsonvalues.JsLong
- isBigDec() - Method in class jsonvalues.JsNothing
- isBigDec() - Method in class jsonvalues.JsNull
- isBigDec() - Method in interface jsonvalues.Json
- isBigDec() - Method in class jsonvalues.JsStr
- isBigDec(Predicate<BigDecimal>) - Method in interface jsonvalues.JsElem
-
Returns true if this elem is a JsBigDec and satisfies the given predicate
- isBigInt() - Method in class jsonvalues.JsBigDec
- isBigInt() - Method in class jsonvalues.JsBigInt
- isBigInt() - Method in class jsonvalues.JsBool
- isBigInt() - Method in class jsonvalues.JsDouble
- isBigInt() - Method in interface jsonvalues.JsElem
- isBigInt() - Method in class jsonvalues.JsInt
- isBigInt() - Method in class jsonvalues.JsLong
- isBigInt() - Method in class jsonvalues.JsNothing
- isBigInt() - Method in class jsonvalues.JsNull
- isBigInt() - Method in interface jsonvalues.Json
- isBigInt() - Method in class jsonvalues.JsStr
- isBigInt(Predicate<BigInteger>) - Method in interface jsonvalues.JsElem
-
Returns true if this elem is a JsBigInt and satisfies the given predicate
- isBool() - Method in class jsonvalues.JsBool
- isBool() - Method in interface jsonvalues.JsElem
- isBool() - Method in class jsonvalues.JsNothing
- isBool() - Method in class jsonvalues.JsNull
- isBool() - Method in interface jsonvalues.JsNumber
- isBool() - Method in interface jsonvalues.Json
- isBool() - Method in class jsonvalues.JsStr
- isDecimal() - Method in interface jsonvalues.JsElem
- isDouble() - Method in class jsonvalues.JsBigDec
- isDouble() - Method in class jsonvalues.JsBigInt
- isDouble() - Method in class jsonvalues.JsBool
- isDouble() - Method in class jsonvalues.JsDouble
- isDouble() - Method in interface jsonvalues.JsElem
- isDouble() - Method in class jsonvalues.JsInt
- isDouble() - Method in class jsonvalues.JsLong
- isDouble() - Method in class jsonvalues.JsNothing
- isDouble() - Method in class jsonvalues.JsNull
- isDouble() - Method in interface jsonvalues.Json
- isDouble() - Method in class jsonvalues.JsStr
- 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 class jsonvalues.JsBool
- isFalse() - Method in interface jsonvalues.JsElem
- isFalse() - Method in class jsonvalues.JsNothing
- isFalse() - Method in class jsonvalues.JsNull
- isFalse() - Method in interface jsonvalues.JsNumber
- isFalse() - Method in interface jsonvalues.Json
- isFalse() - Method in class jsonvalues.JsStr
- 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 class jsonvalues.JsBigDec
- isInt() - Method in class jsonvalues.JsBigInt
- isInt() - Method in class jsonvalues.JsBool
- isInt() - Method in class jsonvalues.JsDouble
- isInt() - Method in interface jsonvalues.JsElem
- isInt() - Method in class jsonvalues.JsInt
- isInt() - Method in class jsonvalues.JsLong
- isInt() - Method in class jsonvalues.JsNothing
- isInt() - Method in class jsonvalues.JsNull
- isInt() - Method in interface jsonvalues.Json
- isInt() - Method in class jsonvalues.JsStr
- 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 class jsonvalues.JsBigDec
- isLong() - Method in class jsonvalues.JsBigInt
- isLong() - Method in class jsonvalues.JsBool
- isLong() - Method in class jsonvalues.JsDouble
- isLong() - Method in interface jsonvalues.JsElem
- isLong() - Method in class jsonvalues.JsInt
- isLong() - Method in class jsonvalues.JsLong
- isLong() - Method in class jsonvalues.JsNothing
- isLong() - Method in class jsonvalues.JsNull
- isLong() - Method in interface jsonvalues.Json
- isLong() - Method in class jsonvalues.JsStr
- 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 class jsonvalues.JsBool
- isNothing() - Method in interface jsonvalues.JsElem
- isNothing() - Method in class jsonvalues.JsNothing
- isNothing() - Method in class jsonvalues.JsNull
- isNothing() - Method in interface jsonvalues.JsNumber
- isNothing() - Method in interface jsonvalues.Json
- isNothing() - Method in class jsonvalues.JsStr
- 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 class jsonvalues.JsBool
- isNull() - Method in interface jsonvalues.JsElem
- isNull() - Method in class jsonvalues.JsNothing
- isNull() - Method in class jsonvalues.JsNull
- isNull() - Method in interface jsonvalues.JsNumber
- isNull() - Method in interface jsonvalues.Json
- isNull() - Method in class jsonvalues.JsStr
- isNumber() - Method in class jsonvalues.JsBool
- isNumber() - Method in interface jsonvalues.JsElem
- isNumber() - Method in class jsonvalues.JsNothing
- isNumber() - Method in class jsonvalues.JsNull
- isNumber() - Method in interface jsonvalues.JsNumber
- isNumber() - Method in interface jsonvalues.Json
- isNumber() - Method in class jsonvalues.JsStr
- isObj() - Method in interface jsonvalues.JsArray
- isObj() - Method in class jsonvalues.JsBool
- isObj() - Method in interface jsonvalues.JsElem
- isObj() - Method in class jsonvalues.JsNothing
- isObj() - Method in class jsonvalues.JsNull
- isObj() - Method in interface jsonvalues.JsNumber
- isObj() - Method in interface jsonvalues.JsObj
- isObj() - Method in class jsonvalues.JsStr
- isObj(Predicate<JsObj>) - Method in interface jsonvalues.JsElem
-
Returns true if this elem is a JsObj and satisfies the given predicate
- isSameType(JsElem) - Method in interface jsonvalues.JsElem
-
returns true if this elem and the given have the same type
- isStr() - Method in class jsonvalues.JsBool
- isStr() - Method in interface jsonvalues.JsElem
- isStr() - Method in class jsonvalues.JsNothing
- isStr() - Method in class jsonvalues.JsNull
- isStr() - Method in interface jsonvalues.JsNumber
- isStr() - Method in interface jsonvalues.Json
- isStr() - Method in class jsonvalues.JsStr
- 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 class jsonvalues.JsBool
- isTrue() - Method in interface jsonvalues.JsElem
- isTrue() - Method in class jsonvalues.JsNothing
- isTrue() - Method in class jsonvalues.JsNull
- isTrue() - Method in interface jsonvalues.JsNumber
- isTrue() - Method in interface jsonvalues.Json
- isTrue() - Method in class jsonvalues.JsStr
J
- 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.
K
- key(String) - Method in class jsonvalues.JsPath
-
creates a new JsPath appending the key to
this
JsPath. - Key - Class in jsonvalues
-
Represents the Key of a JsElem in a JsObj.
L
- last() - Method in interface jsonvalues.JsArray
-
Returns the last element of this array.
- last() - Method in class jsonvalues.JsPath
-
returns the last parse
this
JsPath if it's not empty or a exception otherwise. - LIST - jsonvalues.JsArray.TYPE
-
The order of data matters and duplicate data items are permitted.
- longValueExact() - Method in class jsonvalues.JsBigDec
-
Returns the value of this bigdecimal; or an empty optional if the value overflows an
long
. - longValueExact() - Method in class jsonvalues.JsBigInt
-
Returns the value of this biginteger; or an empty optional if the value overflows an
long
.
M
- 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(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.
- map(UnaryOperator<T>) - Method in interface jsonvalues.Json
- 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.
- mapIfInt(IntUnaryOperator) - Method in class jsonvalues.JsPair
-
Declarative way of implementing
if(pair.elem.isInt()) return Pair.of(pair.path, pair.elem.asJsInt().map(operator)) else return pair
- mapIfStr(UnaryOperator<String>) - Method in class jsonvalues.JsPair
-
Declarative way of implementing
if(pair.elem.isStr()) return Pair.of(pair.path, pair.elem.asJsStr().map(mapFn)) else return pair
- 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.
- MatchExp - Class in jsonvalues
-
Java doesn't support Pattern Matching but we can implement some matching expressions using high order functions.
- 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.
N
- n - Variable in class jsonvalues.Index
-
The index number.
- name - Variable in class jsonvalues.Key
-
name of the key.
- negate() - Method in class jsonvalues.JsBool
-
Negates this json boolean (implementation of ! operator).
- NOTHING - Static variable in class jsonvalues.JsNothing
-
The singleton nothing value.
- NULL - Static variable in class jsonvalues.JsNull
-
The singleton null value.
O
- 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.
P
- 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.
R
- reduce(BinaryOperator<R>, Function<? super JsPair, R>, Predicate<? super JsPair>) - Method in interface jsonvalues.Json
-
Performs a reduction on the values that satisfy the predicate in the first level of this json.
- reduce_(BinaryOperator<R>, Function<? super JsPair, R>, Predicate<? super JsPair>) - Method in interface jsonvalues.Json
-
Performs a reduction on the values of this json that satisfy the predicate.
- remove(String) - Method in interface jsonvalues.JsObj
-
Removes the key from this object if it's present.
- remove(String) - Method in interface jsonvalues.Json
-
Removes the element in this json located at the given path, if it exists, returning the same this instance otherwise
- remove(JsPath) - Method in interface jsonvalues.Json
-
Removes the element in this json located at the given path, if it exists, returning the same this instance otherwise
S
- same(String) - Method in class jsonvalues.JsPath
-
return true if this path and a given path-like string represent the same location.
- serialVersionUID - Static variable in interface jsonvalues.JsArray
- serialVersionUID - Static variable in interface jsonvalues.JsObj
- serialVersionUID - Static variable in interface jsonvalues.Json
- SET - jsonvalues.JsArray.TYPE
-
The order of data items does not matter (or is undefined) but duplicate data items are not permitted.
- size() - Method in interface jsonvalues.Json
-
Returns the number of elements in the first level of this json
- size() - Method in class jsonvalues.JsPath
- size(String) - Method in interface jsonvalues.Json
-
Returns the size of the json located at the given path in this json or OptionalInt.empty() if it doesn't exist or it's not a Json
- size(JsPath) - Method in interface jsonvalues.Json
-
Returns the size of the json located at the given path in this json or OptionalInt.empty() if it doesn't exist or it's not a Json
- size_() - Method in interface jsonvalues.Json
-
Returns the number of all the elements in this json
- size_(String) - Method in interface jsonvalues.Json
-
Returns the size of the Json located at the given path in this json or OptionalInt.empty() if it doesn't exist or it's not a Json
- size_(JsPath) - Method in interface jsonvalues.Json
-
Returns the size of the json located at the given path in this json or OptionalInt.empty() if it doesn't exist or it's not a Json
- startsWith(String) - Method in class jsonvalues.JsPath
-
returns true if this path starts with the given path-like string
- startsWith(JsPath) - Method in class jsonvalues.JsPath
-
returns true if this path starts with the given path.
- stream() - Method in interface jsonvalues.Json
-
Returns a stream over the pairs of elements in the first level of this json object.
- stream() - Method in class jsonvalues.JsPath
-
Returns a sequential
Stream
of Positions with this path as its source. - stream_() - Method in interface jsonvalues.Json
-
Returns a stream over all the pairs of elements in this json object.
T
- 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.
U
- union(JsArray, JsArray.TYPE) - Method in interface jsonvalues.JsArray
-
Returns the union of this array and another, defining characteristics like order and duplicates occurrence with the given ARRAY_AS parameter.
- union(JsObj) - Method in interface jsonvalues.JsObj
-
Returns the union of this object and another given as a parameter.
- union_(JsArray) - Method in interface jsonvalues.JsArray
-
Returns the union of this array and another given as parameter considering both
JsArray.TYPE.LIST
lists and applying recursively the union to those elements which are Json of the same type and are located at the same position. - union_(JsObj, JsArray.TYPE) - Method in interface jsonvalues.JsObj
-
Returns the union of this object and another given as parameter applying recursively the union 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.
- UserError - Exception in jsonvalues
-
Exception that models a programming error made by the user.
V
- valueOf(String) - Static method in enum jsonvalues.JsArray.TYPE
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum jsonvalues.JsArray.TYPE
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- withElemFilter(Predicate<? super JsPair>) - Method in class jsonvalues.ParseOptions
-
adds a predicate to this builder to filter the elements of the json to be parsed, removing those pairs that are evaluated to false on the predicate.
- withElemMap(Function<? super JsPair, ? extends JsElem>) - Method in class jsonvalues.ParseOptions
-
adds a function to this builder to map the elements of the json to be parsed
- withKeyFilter(Predicate<? super JsPath>) - Method in class jsonvalues.ParseOptions
-
adds a function to this builder to filter the keys of the json to be parsed.
- withKeyMap(UnaryOperator<String>) - Method in class jsonvalues.ParseOptions
-
adds a function to this builder to map the keys of the json to be parsed.
X
- x - Variable in class jsonvalues.JsBigDec
-
The big decimal value
- x - Variable in class jsonvalues.JsBigInt
-
the big integer value.
- x - Variable in class jsonvalues.JsBool
-
the boolean value.
- x - Variable in class jsonvalues.JsDouble
-
The double value.
- x - Variable in class jsonvalues.JsInt
-
The integer value.
- x - Variable in class jsonvalues.JsLong
-
The long primitive.
- x - Variable in class jsonvalues.JsStr
-
The string value.
_
- _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.
All Classes All Packages