A B C D E F G H I J K L M N O P R S T U V W 
All Classes All Packages

A

accept(Consumer<JsValue>, Consumer<JsObj>, Consumer<JsArray>) - Static method in class jsonvalues.MatchExp
Declarative way of consuming an element based on its type
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, JsValue) - Method in class jsonvalues.JsArray
 
append(JsPath, JsValue) - Method in class jsonvalues.JsObj
 
append(JsPath, JsValue) - Method in interface jsonvalues.Json
Appends one element to the array located at the given path in this json.
append(JsPath, JsValue, JsValue...) - 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(JsValue, JsValue...) - Method in class jsonvalues.JsArray
Adds one or more elements, starting from the first, to the back of this array.
appendAll(JsArray) - Method in class 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 class jsonvalues.JsArray
 
appendAll(JsPath, JsArray) - Method in class jsonvalues.JsObj
 
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.
appendAllBackTrampoline(JsArray, JsArray) - Method in class jsonvalues.JsArray
 
appendAllFrontTrampoline(JsArray, JsArray) - Method in class jsonvalues.JsArray
 
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 JsValue>) - 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.
ArraySerializer<T extends JsArray> - Class in com.dslplatform.json.serializers
 
ArraySerializer(ValueSerializer) - Constructor for class com.dslplatform.json.serializers.ArraySerializer
 
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.
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

com.dslplatform.json - package com.dslplatform.json
the library dsl-json has been extended with some customization.
com.dslplatform.json.serializers - package com.dslplatform.json.serializers
 
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
containsPath(JsPath) - Method in interface jsonvalues.Json
Returns true if an element exists in this json at the given path.
containsValue(JsValue) - Method in class jsonvalues.JsArray
 
containsValue(JsValue) - Method in class jsonvalues.JsObj
 
containsValue(JsValue) - Method in interface jsonvalues.Json
Returns true if this json contains the given element in the first level.

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

empty() - Static method in class jsonvalues.JsArray
 
empty() - Static method in class jsonvalues.JsObj
 
empty() - Static method in class jsonvalues.JsPath
Returns the singleton empty path.
EMPTY - Static variable in class jsonvalues.JsArray
 
EMPTY - Static variable in class jsonvalues.JsObj
 
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.JsArray
 
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.JsObj
 
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 class 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(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 class jsonvalues.JsObj
return true if this obj is equal to the given as a parameter.
equals(JsValue, JsArray.TYPE) - Method in interface jsonvalues.Json
 

F

FALSE - Static variable in class jsonvalues.JsBool
The singleton false value.
fields() - Method in class jsonvalues.JsObj
Returns a set containing each key fo this object.
filterAllKeys(Predicate<? super JsPair>) - Method in class jsonvalues.JsArray
 
filterAllKeys(Predicate<? super JsPair>) - Method in class jsonvalues.JsObj
 
filterAllKeys(Predicate<? super JsPair>) - Method in interface jsonvalues.Json
Filters all the keys of this json, removing those that don't ifPredicateElse the predicate.
filterAllObjs(BiPredicate<? super JsPath, ? super JsObj>) - Method in class jsonvalues.JsArray
 
filterAllObjs(BiPredicate<? super JsPath, ? super JsObj>) - Method in class jsonvalues.JsObj
 
filterAllObjs(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.
filterAllValues(Predicate<? super JsPair>) - Method in class jsonvalues.JsArray
 
filterAllValues(Predicate<? super JsPair>) - Method in class jsonvalues.JsObj
 
filterAllValues(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 class jsonvalues.JsArray
 
filterKeys(Predicate<? super JsPair>) - Method in class jsonvalues.JsObj
 
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.
filterObjs(BiPredicate<? super JsPath, ? super JsObj>) - Method in class jsonvalues.JsArray
 
filterObjs(BiPredicate<? super JsPath, ? super JsObj>) - Method in class jsonvalues.JsObj
 
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.
filterValues(Predicate<? super JsPair>) - Method in class jsonvalues.JsArray
 
filterValues(Predicate<? super JsPair>) - Method in class jsonvalues.JsObj
 
filterValues(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.
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(int) - Method in class jsonvalues.JsArray
 
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 class jsonvalues.JsArray
 
get(Position) - Method in class jsonvalues.JsObj
 
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.JsArray
equals method is inherited, so it's implemented.
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.JsObj
equals method is inherited, so it's implemented.
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 class jsonvalues.JsArray
Returns the first element of this array.
head() - Method in class 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

id() - Method in class jsonvalues.JsArray
 
id() - Method in class jsonvalues.JsBigDec
 
id() - Method in class jsonvalues.JsBigInt
 
id() - Method in class jsonvalues.JsBool
 
id() - Method in class jsonvalues.JsDouble
 
id() - Method in class jsonvalues.JsInt
 
id() - Method in class jsonvalues.JsLong
 
id() - Method in class jsonvalues.JsNothing
 
id() - Method in class jsonvalues.JsNull
 
id() - Method in class jsonvalues.JsObj
 
id() - Method in class jsonvalues.JsStr
 
id() - Method in interface jsonvalues.JsValue
 
ID - Static variable in class jsonvalues.JsArray
 
ID - Static variable in class jsonvalues.JsBigDec
 
ID - Static variable in class jsonvalues.JsBigInt
 
ID - Static variable in class jsonvalues.JsBool
 
ID - Static variable in class jsonvalues.JsDouble
 
ID - Static variable in class jsonvalues.JsNothing
 
ID - Static variable in class jsonvalues.JsNull
 
ID - Static variable in class jsonvalues.JsStr
 
ifArrElse(Function<? super JsArray, T>, Function<? super JsValue, 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 JsValue, 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 JsValue, 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<JsValue, JsArray, Trampoline<T>>) - Method in class jsonvalues.JsArray
 
ifIntegralElse(IntFunction<T>, LongFunction<T>, Function<BigInteger, T>, Function<? super JsValue, 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, JsValue, 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, JsValue, 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 JsValue, 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<JsValue, T>) - Static method in class jsonvalues.MatchExp
return a matching expression to extract jsons out of json elements.
ifNothingElse(Supplier<T>, Function<JsValue, 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 JsValue, 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<JsValue>, Function<JsValue, T>, Function<JsValue, 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 JsValue, 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 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 class 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 class 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 class 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.
intersectionAll(JsArray) - Method in class jsonvalues.JsArray
this.intersectionAll(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.
intersectionAll(JsObj, JsArray.TYPE) - Method in class jsonvalues.JsObj
this.intersectionAll(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 class jsonvalues.JsArray
 
isArray() - Method in interface jsonvalues.JsValue
 
isArray(Predicate<JsArray>) - Method in interface jsonvalues.JsValue
Returns true if this elem is a JsArray and satisfies the given predicate
isBigDec() - Method in class jsonvalues.JsBigDec
 
isBigDec() - Method in interface jsonvalues.JsValue
 
isBigDec(Predicate<BigDecimal>) - Method in interface jsonvalues.JsValue
Returns true if this elem is a JsBigDec and satisfies the given predicate
isBigInt() - Method in class jsonvalues.JsBigInt
 
isBigInt() - Method in interface jsonvalues.JsValue
 
isBigInt(Predicate<BigInteger>) - Method in interface jsonvalues.JsValue
Returns true if this elem is a JsBigInt and satisfies the given predicate
isBool() - Method in class jsonvalues.JsBool
 
isBool() - Method in interface jsonvalues.JsValue
 
isDecimal() - Method in interface jsonvalues.JsValue
 
isDouble() - Method in class jsonvalues.JsDouble
 
isDouble() - Method in interface jsonvalues.JsValue
 
isDouble(DoublePredicate) - Method in interface jsonvalues.JsValue
Returns true if this elem is a JsDouble and satisfies the given predicate
isEmpty() - Method in class jsonvalues.JsArray
 
isEmpty() - Method in class jsonvalues.JsObj
 
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.
isFalse() - Method in class jsonvalues.JsBool
 
isFalse() - Method in interface jsonvalues.JsValue
 
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.JsValue
 
isInstant(Predicate<Instant>) - Method in interface jsonvalues.JsValue
Returns true if this elem is a JsStr that contains an Instant and satisfies the given predicate
isInt() - Method in class jsonvalues.JsInt
 
isInt() - Method in interface jsonvalues.JsValue
 
isInt(IntPredicate) - Method in interface jsonvalues.JsValue
Returns true if this elem is a JsInt and satisfies the given predicate
isIntegral() - Method in interface jsonvalues.JsValue
 
isJson() - Method in interface jsonvalues.JsValue
 
isJson(Predicate<Json<?>>) - Method in interface jsonvalues.JsValue
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.JsValue
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.JsValue
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.JsValue
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.JsValue
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.JsLong
 
isLong() - Method in interface jsonvalues.JsValue
 
isLong(LongPredicate) - Method in interface jsonvalues.JsValue
Returns true if this elem is a JsLong and satisfies the given predicate
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.JsNothing
 
isNothing() - Method in interface jsonvalues.JsValue
 
isNotJson() - Method in interface jsonvalues.JsValue
 
isNotNothing() - Method in interface jsonvalues.JsValue
 
isNotNull() - Method in interface jsonvalues.JsValue
 
isNotNumber() - Method in interface jsonvalues.JsValue
 
isNull() - Method in class jsonvalues.JsNull
 
isNull() - Method in interface jsonvalues.JsValue
 
isNumber() - Method in interface jsonvalues.JsValue
 
isObj() - Method in class jsonvalues.JsObj
 
isObj() - Method in interface jsonvalues.JsValue
 
isObj(Predicate<JsObj>) - Method in interface jsonvalues.JsValue
Returns true if this elem is a JsObj and satisfies the given predicate
isSameType(JsValue) - Method in interface jsonvalues.JsValue
returns true if this elem and the given have the same type
isStr() - Method in class jsonvalues.JsStr
 
isStr() - Method in interface jsonvalues.JsValue
 
isStr(Predicate<String>) - Method in interface jsonvalues.JsValue
Returns true if this elem is a JsStr and satisfies the given predicate
isTrue() - Method in class jsonvalues.JsBool
 
isTrue() - Method in interface jsonvalues.JsValue
 
iterator() - Method in class jsonvalues.JsArray
 
iterator() - Method in class jsonvalues.JsObj
 

J

JsArray - Class 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.
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 - Class 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.
JsValue - Interface in jsonvalues
Represents a json element of any type.

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 class 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
 
mapAllKeys(Function<? super JsPair, String>) - Method in class jsonvalues.JsArray
 
mapAllKeys(Function<? super JsPair, String>) - Method in class jsonvalues.JsObj
 
mapAllKeys(Function<? super JsPair, String>) - Method in interface jsonvalues.Json
Maps all the keys of this json.
mapAllKeys(Function<? super JsPair, String>, Predicate<? super JsPair>) - Method in class jsonvalues.JsArray
 
mapAllKeys(Function<? super JsPair, String>, Predicate<? super JsPair>) - Method in class jsonvalues.JsObj
 
mapAllKeys(Function<? super JsPair, String>, Predicate<? super JsPair>) - Method in interface jsonvalues.Json
Maps all the keys of this json that satisfies a given predicate.
mapAllObjs(BiFunction<? super JsPath, ? super JsObj, JsObj>) - Method in class jsonvalues.JsArray
 
mapAllObjs(BiFunction<? super JsPath, ? super JsObj, JsObj>) - Method in class jsonvalues.JsObj
 
mapAllObjs(BiFunction<? super JsPath, ? super JsObj, JsObj>) - Method in interface jsonvalues.Json
Maps all the jsons of this json.
mapAllObjs(BiFunction<? super JsPath, ? super JsObj, JsObj>, BiPredicate<? super JsPath, ? super JsObj>) - Method in class jsonvalues.JsArray
 
mapAllObjs(BiFunction<? super JsPath, ? super JsObj, JsObj>, BiPredicate<? super JsPath, ? super JsObj>) - Method in class jsonvalues.JsObj
 
mapAllObjs(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.
mapAllValues(Function<? super JsPair, ? extends JsValue>) - Method in class jsonvalues.JsArray
 
mapAllValues(Function<? super JsPair, ? extends JsValue>) - Method in class jsonvalues.JsObj
 
mapAllValues(Function<? super JsPair, ? extends JsValue>) - Method in interface jsonvalues.Json
Maps all the values of this json.
mapAllValues(Function<? super JsPair, ? extends JsValue>, Predicate<? super JsPair>) - Method in class jsonvalues.JsArray
 
mapAllValues(Function<? super JsPair, ? extends JsValue>, Predicate<? super JsPair>) - Method in class jsonvalues.JsObj
 
mapAllValues(Function<? super JsPair, ? extends JsValue>, Predicate<? super JsPair>) - Method in interface jsonvalues.Json
Maps all the values of this json that satisfies a given predicate.
mapElem(UnaryOperator<JsValue>) - Method in class jsonvalues.JsPair
Returns a new pair with the same path and a new element result of applying the mapping function
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 class jsonvalues.JsArray
 
mapKeys(Function<? super JsPair, String>) - Method in class jsonvalues.JsObj
 
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 class jsonvalues.JsArray
 
mapKeys(Function<? super JsPair, String>, Predicate<? super JsPair>) - Method in class jsonvalues.JsObj
 
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.
mapObjs(BiFunction<? super JsPath, ? super JsObj, JsObj>) - Method in class jsonvalues.JsArray
 
mapObjs(BiFunction<? super JsPath, ? super JsObj, JsObj>) - Method in class jsonvalues.JsObj
 
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 class jsonvalues.JsArray
 
mapObjs(BiFunction<? super JsPath, ? super JsObj, JsObj>, BiPredicate<? super JsPath, ? super JsObj>) - Method in class jsonvalues.JsObj
 
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.
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
mapValues(Function<? super JsPair, ? extends JsValue>) - Method in class jsonvalues.JsArray
 
mapValues(Function<? super JsPair, ? extends JsValue>) - Method in class jsonvalues.JsObj
 
mapValues(Function<? super JsPair, ? extends JsValue>) - Method in interface jsonvalues.Json
Maps the values in the first level of this json.
mapValues(Function<? super JsPair, ? extends JsValue>, Predicate<? super JsPair>) - Method in class jsonvalues.JsArray
 
mapValues(Function<? super JsPair, ? extends JsValue>, Predicate<? super JsPair>) - Method in class jsonvalues.JsObj
 
mapValues(Function<? super JsPair, ? extends JsValue>, Predicate<? super JsPair>) - Method in interface jsonvalues.Json
Maps the values in the first level of this json that satisfies a given predicate.
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.
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

ObjSerializer<T extends JsObj> - Class in com.dslplatform.json.serializers
 
ObjSerializer(ValueSerializer) - Constructor for class com.dslplatform.json.serializers.ObjSerializer
 
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 class 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 class 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 class 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 class jsonvalues.JsArray
Returns an immutable 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...) - Static method in class jsonvalues.JsArray
Returns an immutable array from one or more strings.
of(String, JsValue) - Static method in class jsonvalues.JsObj
Returns a one-element immutable object.
of(String, JsValue, String, JsValue) - Static method in class jsonvalues.JsObj
Returns a two-element immutable object.
of(String, JsValue, String, JsValue, String, JsValue) - Static method in class jsonvalues.JsObj
Returns a three-element immutable object.
of(String, JsValue, String, JsValue, String, JsValue, String, JsValue) - Static method in class jsonvalues.JsObj
Returns a four-element immutable object.
of(String, JsValue, String, JsValue, String, JsValue, String, JsValue, String, JsValue) - Static method in class jsonvalues.JsObj
Returns a five-element immutable object.
of(String, JsValue, String, JsValue, String, JsValue, String, JsValue, String, JsValue, String, JsValue) - Static method in class 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(JsPair, JsPair...) - Static method in class jsonvalues.JsArray
Returns an immutable array from one or more pairs.
of(JsPair, JsPair...) - Static method in class 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, JsValue) - Static method in class jsonvalues.JsPair
Returns a json pair from the path and the json element.
of(JsValue) - Static method in class jsonvalues.JsArray
 
of(JsValue, JsValue) - Static method in class jsonvalues.JsArray
Returns an immutable two-element array.
of(JsValue, JsValue, JsValue) - Static method in class jsonvalues.JsArray
Returns an immutable three-element array.
of(JsValue, JsValue, JsValue, JsValue) - Static method in class jsonvalues.JsArray
Returns an immutable four-element array.
of(JsValue, JsValue, JsValue, JsValue, JsValue) - Static method in class jsonvalues.JsArray
Returns an immutable five-element array.
of(JsValue, JsValue, JsValue, JsValue, JsValue, JsValue...) - Static method in class jsonvalues.JsArray
Returns an immutable array.
ofIterable(Iterable<Map.Entry<String, JsValue>>) - Static method in class jsonvalues.JsObj
 
ofIterable(Iterable<JsValue>) - Static method in class jsonvalues.JsArray
returns an immutable json array from an iterable of json elements

P

parse(String) - Static method in class jsonvalues.JsArray
Tries to parse the string into an immutable json array.
parse(String) - Static method in class 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, ParseBuilder) - Static method in class jsonvalues.JsArray
 
parse(String, ParseBuilder) - Static method in class jsonvalues.JsObj
Tries to parse the string into an immutable object, performing the specified transformations during the parsing.
parse(String, ParseBuilder) - Static method in interface jsonvalues.Json
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.
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(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, JsValue) - Method in class jsonvalues.JsArray
 
prepend(JsPath, JsValue) - Method in class jsonvalues.JsObj
 
prepend(JsPath, JsValue) - Method in interface jsonvalues.Json
prepends one element to the array located at the path in this json.
prepend(JsPath, JsValue, JsValue...) - 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(JsValue, JsValue...) - Method in class jsonvalues.JsArray
Adds one or more elements, starting from the last, to the front of this array.
prependAll(JsArray) - Method in class jsonvalues.JsArray
Adds all the elements of the array, starting from the last, to the front of this array.
prependAll(JsPath, JsArray) - Method in class jsonvalues.JsArray
 
prependAll(JsPath, JsArray) - Method in class jsonvalues.JsObj
 
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<JsValue>) - 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 JsValue, ? extends JsValue>) - Method in class jsonvalues.JsArray
 
put(JsPath, Function<? super JsValue, ? extends JsValue>) - Method in class jsonvalues.JsObj
 
put(JsPath, Function<? super JsValue, ? extends JsValue>) - 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, JsValue) - 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 JsValue>, JsPath, Function<? super JsValue, ? extends JsValue>) - 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 JsValue>) - 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 JsValue, ? extends JsValue>) - 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 class jsonvalues.JsArray
 
reduce(BinaryOperator<R>, Function<? super JsPair, R>, Predicate<? super JsPair>) - Method in class jsonvalues.JsObj
 
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.
reduceAll(BinaryOperator<R>, Function<? super JsPair, R>, Predicate<? super JsPair>) - Method in class jsonvalues.JsArray
 
reduceAll(BinaryOperator<R>, Function<? super JsPair, R>, Predicate<? super JsPair>) - Method in class jsonvalues.JsObj
 
reduceAll(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(JsPath) - Method in class jsonvalues.JsArray
 
remove(JsPath) - Method in class jsonvalues.JsObj
 
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(JsObj) - Method in class jsonvalues.JsObj
 
serialize() - Method in interface jsonvalues.Json
 
serialize(OutputStream) - Method 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.
setArraySerializer(JsonWriter.WriteObject<JsArray>) - Method in class com.dslplatform.json.serializers.ValueSerializer
 
setObjectSerializer(JsonWriter.WriteObject<JsObj>) - Method in class com.dslplatform.json.serializers.ValueSerializer
 
size() - Method in class jsonvalues.JsArray
 
size() - Method in class jsonvalues.JsObj
 
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
sizeAll() - Method in interface jsonvalues.Json
Returns the number of all the elements in this json
sizeAll(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 class jsonvalues.JsArray
 
stream() - Method in class jsonvalues.JsObj
 
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.
streamAll() - Method in class jsonvalues.JsArray
 
streamAll() - Method in class jsonvalues.JsObj
 
streamAll() - Method in interface jsonvalues.Json
Returns a stream over all the pairs of elements in this json object.

T

tail() - Method in class jsonvalues.JsArray
Returns a json array consisting of all elements of this array except the first one.
tail() - Method in class jsonvalues.JsObj
Returns a new object with all the entries of this json object except the one with the given key.
tail() - Method in class jsonvalues.JsPath
 
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(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(JsValue) - Method in interface jsonvalues.Json
 
timesAll(JsValue) - Method in interface jsonvalues.Json
 
toJsArray() - Method in interface jsonvalues.JsValue
 
toJsBigDec() - Method in interface jsonvalues.JsValue
 
toJsBigInt() - Method in interface jsonvalues.JsValue
 
toJsBool() - Method in interface jsonvalues.JsValue
 
toJsDouble() - Method in interface jsonvalues.JsValue
 
toJsInt() - Method in interface jsonvalues.JsValue
 
toJsLong() - Method in interface jsonvalues.JsValue
 
toJsObj() - Method in interface jsonvalues.JsValue
 
toJson() - Method in interface jsonvalues.JsValue
 
toJsStr() - Method in interface jsonvalues.JsValue
 
toPrettyString() - Method in interface jsonvalues.Json
Converts the string representation of this Json to a pretty print version
toString() - Method in class jsonvalues.Index
Returns the value of the index as a string.
toString() - Method in class jsonvalues.JsArray
// Single-check idiom Item 83 from effective java
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.JsObj
// Single-check idiom Item 83 from effective java
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.
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.

U

union(JsArray, JsArray.TYPE) - Method in class jsonvalues.JsArray
this.union(that, SET) returns this plus those elements from that that don't exist in this.
union(JsObj) - Method in class jsonvalues.JsObj
returns this json object plus those pairs from the given json object that which keys don't exist in this.
unionAll(JsArray) - Method in class 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.
unionAll(JsObj, JsArray.TYPE) - Method in class 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

value - Variable in class jsonvalues.JsBigDec
The big decimal value
value - Variable in class jsonvalues.JsBigInt
the big integer value.
value - Variable in class jsonvalues.JsBool
the boolean value.
value - Variable in class jsonvalues.JsDouble
The double value.
value - Variable in class jsonvalues.JsInt
The integer value.
value - Variable in class jsonvalues.JsLong
The long primitive.
value - Variable in class jsonvalues.JsPair
the json element.
value - Variable in class jsonvalues.JsStr
The string value.
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.
ValueSerializer - Class in com.dslplatform.json.serializers
 
ValueSerializer() - Constructor for class com.dslplatform.json.serializers.ValueSerializer
 

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 JsValue>) - 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.
write(JsonWriter, T) - Method in class com.dslplatform.json.serializers.ArraySerializer
 
write(JsonWriter, T) - Method in class com.dslplatform.json.serializers.ObjSerializer
 
A B C D E F G H I J K L M N O P R S T U V W 
All Classes All Packages