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

A

accept(Consumer<JsElem>, Consumer<JsObj>, Consumer<JsArray>) - Static method in class jsonvalues.MatchExp
Declarative way of consuming an element based on its type
add(int, JsElem) - Method in interface jsonvalues.JsArray
 
add(String, JsElem) - Method in class jsonvalues.Patch.Builder
ADD operation.
add(JsPath, boolean) - Method in interface jsonvalues.Json
Inserts the given boolean at the given path in this json, replacing any existing element at that path.
add(JsPath, double) - Method in interface jsonvalues.Json
Inserts the given double at the given path in this json, replacing any existing element at that path.
add(JsPath, int) - Method in interface jsonvalues.Json
Inserts the given integer at the given path in this json, replacing any existing element at that path.
add(JsPath, long) - Method in interface jsonvalues.Json
Inserts the given long at the given path in this json, replacing any existing element at that path.
add(JsPath, String) - Method in interface jsonvalues.Json
Inserts the given string at the given path in this json, replacing any existing element at that path.
add(JsPath, Function<? super JsElem, ? extends JsElem>) - Method in interface jsonvalues.Json
Inserts the element returned by the function at the given path in this json, replacing any existing element at that path.
add(JsPath, JsElem) - Method in interface jsonvalues.Json
Inserts the given element at the given path in this json, replacing any existing element at that path.
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(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(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(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.
array - Variable in class jsonvalues.ImmutableJsons
represents a factory of immutable Json arrays
array - Variable in class jsonvalues.MutableJsons
represents a factory of mutable Json arrays
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 an UserError exception.
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 UserError exception.
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 a BigInteger, checking for lost information.
bounce() - Method in interface jsonvalues.Trampoline
 
builder() - Static method in class jsonvalues.ParseBuilder
static factory method to create a builder to customize the parsing of a string into a json.

C

collector() - Method in class jsonvalues.MutableJsons.MutableJsArrays
Returns a collector that accumulates the pairs from a stream into a mutable array.
collector() - Method in class jsonvalues.MutableJsons.MutableJsObjs
Returns a collector that accumulates the pairs from a stream into an mutable 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(JsPath) - Method in interface jsonvalues.Json
Returns true if an element exists in this json at the given path.
copy(String, String) - Method in class jsonvalues.Patch.Builder
COPY operation.
create() - Static method in class jsonvalues.Patch
return a new patch-operation builder

D

dec() - Method in class jsonvalues.JsPath
Returns a new path decrementing the last index by one, throwing an UserError 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() - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
Returns the immutable empty array.
empty() - Method in class jsonvalues.ImmutableJsons.ImmutableJsObjs
Returns the immutable empty object.
empty() - Static method in class jsonvalues.JsPath
Returns the singleton empty path.
empty() - Method in class jsonvalues.MutableJsons.MutableJsArrays
Returns a mutable empty array.
empty() - Method in class jsonvalues.MutableJsons.MutableJsObjs
Returns the immutable empty object.
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 of this json, removing those that don't ifPredicateElse the predicate.
filterKeys_(Predicate<? super JsPair>) - Method in interface jsonvalues.Json
Filters all the keys of 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 of 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 of 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.
flatMap(Function<T, TryPatch<T>>) - Method in class jsonvalues.TryPatch
if this TryPatch failed, it returns this instance, whereas if it didn't fail, it returns the TryPatch result of applying the given function to the result of this TryPatch.
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(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(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(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(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(JsPath) - Method in interface jsonvalues.Json
Returns the boolean located at the given path or Optional.empty() if it doesn't exist.
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(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(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(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(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 of 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 of 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.
immutable - Static variable in class jsonvalues.Jsons
Factory of immutable jsons.
ImmutableJsons - Class in jsonvalues
Factory to create immutable jsons.
ImmutableJsons.ImmutableJsArrays - Class in jsonvalues
represents a factory of immutable Json arrays
ImmutableJsons.ImmutableJsObjs - Class in jsonvalues
represents a factory of immutable Json objects
inc() - Method in class jsonvalues.JsPath
Returns a new path incrementing the last index by one, throwing an UserError 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.
indexWithLeadingZeros(String) - Static method in exception jsonvalues.UserError
 
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
this.intersection(that, SET) returns an array with the elements that exist in both this and that.
intersection(JsObj, JsArray.TYPE) - Method in interface jsonvalues.JsObj
this.intersection(that, SET) returns an array with the elements that exist in both this and that this.intersection(that, MULTISET) returns an array with the elements that exist in both this and that, being duplicates allowed.
intersection_(JsArray) - Method in interface jsonvalues.JsArray
this.intersection_(that) behaves as this.intersection(that, LIST), but for those elements that are containers of the same type and are located at the same position, the result is their intersection.
intersection_(JsObj, JsArray.TYPE) - Method in interface jsonvalues.JsObj
this.intersection_(that) behaves as this.intersection(that, LIST), but for those elements that are containers of the same type and are located at the same position, the result is their intersection.
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 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 class jsonvalues.JsBigDec
 
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 class jsonvalues.JsBigInt
 
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 class jsonvalues.JsBool
 
isBool() - Method in interface jsonvalues.JsElem
 
isDecimal() - Method in interface jsonvalues.JsElem
 
isDouble() - Method in class jsonvalues.JsDouble
 
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.
isFailure() - Method in class jsonvalues.TryPatch
return true if the patch failed
isFalse() - Method in class jsonvalues.JsBool
 
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() - Method in class jsonvalues.JsInt
 
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() - Method in class jsonvalues.JsLong
 
isLong(LongPredicate) - Method in interface jsonvalues.JsElem
Returns true if this elem is a JsLong and satisfies the given predicate
isMalformed() - Method in class jsonvalues.TryPatch
return true if the patch couldn't be applied because an operation was malformed: a field was missing or it didn't have the expected schema
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
 
isNothing() - Method in class jsonvalues.JsNothing
 
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
 
isNull() - Method in class jsonvalues.JsNull
 
isNumber() - Method in interface jsonvalues.JsElem
 
isObj() - Method in interface jsonvalues.JsElem
 
isObj() - Method in interface jsonvalues.JsObj
 
isObj(Predicate<JsObj>) - Method in interface jsonvalues.JsElem
Returns true if this elem is a JsObj and satisfies the given predicate
isOpError() - Method in class jsonvalues.TryPatch
return true if the patch failed because an operation returned an error.
isSameType(JsElem) - Method in interface jsonvalues.JsElem
returns true if this elem and the given have the same type
isStr() - Method in interface jsonvalues.JsElem
 
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.
isSuccess() - Method in class jsonvalues.TryPatch
return true if the patch didn't fail
isTrue() - Method in class jsonvalues.JsBool
 
isTrue() - Method in interface jsonvalues.JsElem
 

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.
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.
Jsons - Class in jsonvalues
Singleton which contains the default Json factories.
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 position 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
 
map(UnaryOperator<T>) - Method in class jsonvalues.TryPatch
if this TryPatch failed, it returns this instance, whereas if it didn't fail, it returns the result of this TryPatch mapped with the given function and wrapped in a TryPatch.
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 of this json.
mapElems(Function<? super JsPair, ? extends JsElem>, Predicate<? super JsPair>) - Method in interface jsonvalues.Json
Maps the values in the first level of this json that satisfies a given predicate.
mapElems_(Function<? super JsPair, ? extends JsElem>) - Method in interface jsonvalues.Json
Maps all the values of this json.
mapElems_(Function<? super JsPair, ? extends JsElem>, Predicate<? super JsPair>) - Method in interface jsonvalues.Json
Maps all the values of 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 of this json.
mapKeys(Function<? super JsPair, String>, Predicate<? super JsPair>) - Method in interface jsonvalues.Json
Maps the keys in the first level of 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 of this json.
mapKeys_(Function<? super JsPair, String>, Predicate<? super JsPair>) - Method in interface jsonvalues.Json
Maps all the keys of 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 of 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 of this json that satisfies a given predicate.
mapObjs_(BiFunction<? super JsPath, ? super JsObj, JsObj>) - Method in interface jsonvalues.Json
Maps all the jsons of this json.
mapObjs_(BiFunction<? super JsPath, ? super JsObj, JsObj>, BiPredicate<? super JsPath, ? super JsObj>) - Method in interface jsonvalues.Json
Maps all the jsons of 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(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
 
move(String, String) - Method in class jsonvalues.Patch.Builder
MOVE operation.
MULTISET - jsonvalues.JsArray.TYPE
The order of data items does not matter, but in this case duplicate data items are permitted.
mutable - Static variable in class jsonvalues.Jsons
Default factory of mutable jsons.
MutableJsons - Class in jsonvalues
Factory to create mutable jsons.
MutableJsons.MutableJsArrays - Class in jsonvalues
represents a factory of mutable Json arrays
MutableJsons.MutableJsObjs - Class in jsonvalues
represents a factory of mutable Json objects

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

object - Variable in class jsonvalues.ImmutableJsons
represents a factory of immutable Json objects
object - Variable in class jsonvalues.MutableJsons
represents a factory of mutable Json objects
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...) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
Returns an immutable array from one or more booleans.
of(boolean, boolean...) - Method in class jsonvalues.MutableJsons.MutableJsArrays
Returns a mutable 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...) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
Returns an immutable array from one or more doubles.
of(double, double...) - Method in class jsonvalues.MutableJsons.MutableJsArrays
Returns a mutable 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...) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
Returns an immutable array from one or more integers.
of(int, int...) - Method in class jsonvalues.MutableJsons.MutableJsArrays
Returns a mutable 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...) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
Returns an immutable array from one or more longs.
of(long, long...) - Method in class jsonvalues.MutableJsons.MutableJsArrays
Returns a mutable array from one or more longs.
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, String...) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
Returns an immutable array from one or more strings.
of(String, String...) - Method in class jsonvalues.MutableJsons.MutableJsArrays
Returns a mutable array from one or more strings.
of(String, JsElem) - Method in class jsonvalues.ImmutableJsons.ImmutableJsObjs
Returns a one-element immutable object.
of(String, JsElem) - Method in class jsonvalues.MutableJsons.MutableJsObjs
Returns a one-element mutable object.
of(String, JsElem, String, JsElem) - Method in class jsonvalues.ImmutableJsons.ImmutableJsObjs
Returns a two-element immutable object.
of(String, JsElem, String, JsElem) - Method in class jsonvalues.MutableJsons.MutableJsObjs
Returns a two-element mutable object.
of(String, JsElem, String, JsElem, String, JsElem) - Method in class jsonvalues.ImmutableJsons.ImmutableJsObjs
Returns a three-element immutable object.
of(String, JsElem, String, JsElem, String, JsElem) - Method in class jsonvalues.MutableJsons.MutableJsObjs
Returns a three-element mutable object.
of(String, JsElem, String, JsElem, String, JsElem, String, JsElem) - Method in class jsonvalues.ImmutableJsons.ImmutableJsObjs
Returns a four-element immutable object.
of(String, JsElem, String, JsElem, String, JsElem, String, JsElem) - Method in class jsonvalues.MutableJsons.MutableJsObjs
Returns a four-element mutable object.
of(String, JsElem, String, JsElem, String, JsElem, String, JsElem, String, JsElem) - Method in class jsonvalues.ImmutableJsons.ImmutableJsObjs
Returns a five-element immutable object.
of(String, JsElem, String, JsElem, String, JsElem, String, JsElem, String, JsElem) - Method in class jsonvalues.MutableJsons.MutableJsObjs
Returns a five-element mutable object.
of(String, JsElem, String, JsElem, String, JsElem, String, JsElem, String, JsElem, String, JsElem) - Method in class jsonvalues.ImmutableJsons.ImmutableJsObjs
Returns a six-element immutable object.
of(String, JsElem, String, JsElem, String, JsElem, String, JsElem, String, JsElem, String, JsElem) - Method in class jsonvalues.MutableJsons.MutableJsObjs
Returns a six-element mutable 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(JsElem) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
 
of(JsElem) - Method in class jsonvalues.MutableJsons.MutableJsArrays
Returns a mutable one-element array.
of(JsElem, JsElem) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
Returns an immutable two-element array.
of(JsElem, JsElem) - Method in class jsonvalues.MutableJsons.MutableJsArrays
Returns an mutable two-element array.
of(JsElem, JsElem, JsElem) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
Returns an immutable three-element array.
of(JsElem, JsElem, JsElem) - Method in class jsonvalues.MutableJsons.MutableJsArrays
Returns an mutable three-element array.
of(JsElem, JsElem, JsElem, JsElem) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
Returns an immutable four-element array.
of(JsElem, JsElem, JsElem, JsElem) - Method in class jsonvalues.MutableJsons.MutableJsArrays
Returns a mutable four-element array.
of(JsElem, JsElem, JsElem, JsElem, JsElem) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
Returns an immutable five-element array.
of(JsElem, JsElem, JsElem, JsElem, JsElem) - Method in class jsonvalues.MutableJsons.MutableJsArrays
Returns an mutable five-element array.
of(JsElem, JsElem, JsElem, JsElem, JsElem, JsElem...) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
Returns an immutable array.
of(JsElem, JsElem, JsElem, JsElem, JsElem, JsElem...) - Method in class jsonvalues.MutableJsons.MutableJsArrays
Returns an mutable array.
of(JsPair, JsPair...) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
Returns an immutable array from one or more pairs.
of(JsPair, JsPair...) - Method in class jsonvalues.ImmutableJsons.ImmutableJsObjs
Returns an immutable object from one or more pairs.
of(JsPair, JsPair...) - Method in class jsonvalues.MutableJsons.MutableJsArrays
Returns an immutable array from one or more pairs.
of(JsPair, JsPair...) - Method in class jsonvalues.MutableJsons.MutableJsObjs
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.
ofIterable(Iterable<Map.Entry<String, JsElem>>) - Method in class jsonvalues.ImmutableJsons.ImmutableJsObjs
 
ofIterable(Iterable<JsElem>) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
returns an immutable json array from an iterable of json elements
ofIterable(Iterable<JsElem>) - Method in class jsonvalues.MutableJsons.MutableJsArrays
 
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.
orElseThrow() - Method in class jsonvalues.TryPatch
 

P

parse(String) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
Tries to parse the string into an immutable json array.
parse(String) - Method in class jsonvalues.ImmutableJsons.ImmutableJsObjs
Tries to parse the string into an immutable object.
parse(String) - Method in class jsonvalues.ImmutableJsons
Tries to parse the string into an immutable json.
parse(String) - Method in class jsonvalues.MutableJsons.MutableJsArrays
Tries to parse the string into a mutable json array.
parse(String) - Method in class jsonvalues.MutableJsons.MutableJsObjs
Tries to parse the string into an immutable object.
parse(String) - Method in class jsonvalues.MutableJsons
Tries to parse the string into an immutable json.
parse(String, ParseBuilder) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
 
parse(String, ParseBuilder) - Method in class jsonvalues.ImmutableJsons.ImmutableJsObjs
Tries to parse the string into an immutable object, performing the specified transformations during the parsing.
parse(String, ParseBuilder) - Method in class jsonvalues.ImmutableJsons
Tries to parse the string into an immutable json, performing the specified transformations while the parsing.
parse(String, ParseBuilder) - Method in class jsonvalues.MutableJsons.MutableJsArrays
Tries to parse the string into an mutable array, performing the specified transformations during the parsing.
parse(String, ParseBuilder) - Method in class jsonvalues.MutableJsons.MutableJsObjs
Tries to parse the string into an immutable object, performing the specified transformations during the parsing.
parse(String, ParseBuilder) - Method in class jsonvalues.MutableJsons
Tries to parse the string into an immutable json, performing the specified transformations while the parsing.
ParseBuilder - Class in jsonvalues
Builder with different transformations to customize the parsing of a string into a json.
patch(JsArray) - Method in interface jsonvalues.Json
Implementation of the Json Patch specification.
Patch<T extends Json<T>> - Class in jsonvalues
Encapsulates a RFC 6902 implementation.
Patch.Builder - Class in jsonvalues
represents a builder to create json-patch operations according to the RFC 6902 specification.
PatchMalformed - Exception in jsonvalues
Represents an error when an operation has a invalid schema and the patch can not be applied.
PatchOpError - Exception in jsonvalues
Represents an error applying a patch.
path - Variable in class jsonvalues.JsPair
the location of the element.
path(String) - Static method in class jsonvalues.JsPath
 
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(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(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(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(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(JsPath, 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(JsPath, 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(JsPath, 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(JsPath, 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(JsPath, 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(JsPath, 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(JsPath, Function<? super JsElem, ? extends JsElem>) - Method in interface jsonvalues.Json
Inserts the element returned by the function at the given path in this json, replacing any existing element and filling with JsNull empty indexes in arrays when necessary.
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>, 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(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(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 class jsonvalues.Patch.Builder
REMOVE operation.
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
replace(String, JsElem) - Method in class jsonvalues.Patch.Builder
REPLACE operation.

S

same(JsArray) - Method in interface jsonvalues.JsArray
 
same(JsObj) - Method in interface jsonvalues.JsObj
 
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(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_(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(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(String, JsElem) - Method in class jsonvalues.Patch.Builder
TEST operation.
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
 
toArray() - Method in class jsonvalues.Patch.Builder
returns the array of operations
toImmutable(JsArray) - Method in class jsonvalues.ImmutableJsons.ImmutableJsArrays
 
toImmutable(JsObj) - Method in class jsonvalues.ImmutableJsons.ImmutableJsObjs
 
toImmutable(Json<?>) - Method in class jsonvalues.ImmutableJsons
converts the given json using this factory to an immutable one, if it's not immutable, returning the same instance otherwise.
toMutable(JsArray) - Method in class jsonvalues.MutableJsons.MutableJsArrays
 
toMutable(JsObj) - Method in class jsonvalues.MutableJsons.MutableJsObjs
 
toMutable(Json<?>) - Method in class jsonvalues.MutableJsons
converts the given json using this factory to an mutable one, if it's not mutable, returning the 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.
toOptional() - Method in class jsonvalues.TryPatch
the result of the patch wrapped into an optional.
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 following the format defined in the RFC 6901 with the exception that keys which names are numbers are single-quoted.
toString() - Method in class jsonvalues.JsStr
Returns the string representation of this json string which is its value quoted.
toString() - Method in class jsonvalues.Key
Returns the name of the key.
toString() - Method in class jsonvalues.Patch.Builder
returns the array of operations as a string
toUriFragment() - Method in class jsonvalues.JsPath
Returns a string representation of this path following the format defined in the RFC 6901 for uri fragments, with the exception that keys which names are numbers are single-quoted Example: #/a/b/0/'1'/c+d where keys have been been url-encoded
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.
Try(JsArray) - Constructor for class jsonvalues.Try
 
Try(JsObj) - Constructor for class jsonvalues.Try
 
Try(MalformedJson) - Constructor for class jsonvalues.Try
 
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.
TryArr(JsArray) - Constructor for class jsonvalues.TryArr
 
TryArr(MalformedJson) - Constructor for class jsonvalues.TryArr
 
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.
TryObj(JsObj) - Constructor for class jsonvalues.TryObj
 
TryObj(MalformedJson) - Constructor for class jsonvalues.TryObj
 
TryPatch<T extends Json<T>> - Class in jsonvalues
Computation that applies a group of operations to a Json according to the RFC 6902 and may either result in a PatchMalformed or PatchOpError exceptions, or a successfully transformed json.
TryPatch(T) - Constructor for class jsonvalues.TryPatch
 
TryPatch(PatchMalformed) - Constructor for class jsonvalues.TryPatch
 
TryPatch(PatchOpError) - Constructor for class jsonvalues.TryPatch
 

U

union(JsArray, JsArray.TYPE) - Method in interface jsonvalues.JsArray
this.union(that, SET) returns this plus those elements from that that don't exist in this.
union(JsObj) - Method in interface jsonvalues.JsObj
returns this json object plus those pairs from the given json object that which keys don't exist in this.
union_(JsArray) - Method in interface jsonvalues.JsArray
returns this plus those elements from that which position is >= this.size(), and, at the positions where a container of the same type exists in both this and that, the result is their union.
union_(JsObj, JsArray.TYPE) - Method in interface jsonvalues.JsObj
behaves like the JsObj.union(JsObj) but, for those keys that exit in both this and that json objects, which associated elements are **containers of the same type**, the result is their union.
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.ParseBuilder
adds a predicate to this builder to filter the elements of the json, removing those pairs that are evaluated to false on the predicate.
withElemMap(Function<? super JsPair, ? extends JsElem>) - Method in class jsonvalues.ParseBuilder
adds a function to this builder to map the elements of the json.
withKeyFilter(Predicate<? super JsPath>) - Method in class jsonvalues.ParseBuilder
adds a function to this builder to filter the keys of the json.
withKeyMap(UnaryOperator<String>) - Method in class jsonvalues.ParseBuilder
adds a function to this builder to map the keys of the json.

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.
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