Package | Description |
---|---|
jsonvalues |
json-values is a one-package and zero-dependency library to work with jsons in a declarative and functional way.
|
jsonvalues.spec |
Modifier and Type | Method and Description |
---|---|
JsPath |
JsPath.append(JsPath path)
Creates a new JsPath appending the given path to this path.
|
JsPath |
JsPath.dec()
Returns a new path decrementing the last index by one, throwing an UserError
if the last Position is not an index
|
static JsPath |
JsPath.empty()
Returns the singleton empty path.
|
static JsPath |
JsPath.fromIndex(int i)
returns a path from an index
|
static JsPath |
JsPath.fromKey(String key)
returns a path from a key
|
JsPath |
JsPath.inc()
Returns a new path incrementing the last index by one, throwing an UserError
if the last Position is not an index
|
JsPath |
JsPath.index(int i)
Returns a new path appending an index with the given value to the back of this path.
|
JsPath |
JsPath.init()
Returns a new path without the last Position of this path.
|
JsPath |
JsPath.key(String key)
creates a new JsPath appending the key to
this JsPath. |
JsPath |
JsPath.mapKeys(UnaryOperator<String> map)
Creates a new JsPath applying the given map function to every key of this path.
|
static JsPath |
JsPath.path(String path) |
JsPath |
JsPath.prepend(JsPath path)
Creates a new JsPath prepending the given path to this path.
|
JsPath |
JsPath.tail()
Returns a JsPath without the head of this JsPath
|
Modifier and Type | Method and Description |
---|---|
Stream<fun.tuple.Pair<JsPath,JsValue>> |
JsArray.stream() |
Stream<fun.tuple.Pair<JsPath,JsValue>> |
JsObj.stream() |
Stream<fun.tuple.Pair<JsPath,JsValue>> |
Json.stream()
Returns a stream over the pairs of elements in the first level of this json object.
|
Stream<fun.tuple.Pair<JsPath,JsValue>> |
JsArray.streamAll() |
Stream<fun.tuple.Pair<JsPath,JsValue>> |
JsObj.streamAll() |
Stream<fun.tuple.Pair<JsPath,JsValue>> |
Json.streamAll()
Returns a stream over all the pairs of elements in this json object.
|
Modifier and Type | Method and Description |
---|---|
JsPath |
JsPath.append(JsPath path)
Creates a new JsPath appending the given path to this path.
|
fun.optic.Lens<JsArray,JsArray> |
JsOptics.JsArrayLenses.array(JsPath path)
lens that focus on the json array located at a path in an array
|
fun.optic.Option<JsArray,JsArray> |
JsOptics.JsArrayOptionals.array(JsPath path)
optional that focus on the array located at a path in an array
|
fun.optic.Option<JsObj,JsArray> |
JsOptics.JsObjOptional.array(JsPath path)
optional that focus on the array located at a path in an object
|
fun.optic.Lens<JsObj,JsArray> |
JsOptics.JsObjLenses.array(JsPath path)
lens that focus on a json object located at a path in an object.
|
fun.optic.Lens<JsArray,byte[]> |
JsOptics.JsArrayLenses.binary(JsPath path)
lens that focus on an array of bytes located at a path in an array
|
fun.optic.Option<JsObj,byte[]> |
JsOptics.JsObjOptional.binary(JsPath path)
optional that focus on the array of bytes located at a path in an object
|
fun.optic.Lens<JsObj,byte[]> |
JsOptics.JsObjLenses.binary(JsPath path)
lens that focus on an array of bytes located at a path in an object.
|
fun.optic.Lens<JsArray,Boolean> |
JsOptics.JsArrayLenses.bool(JsPath path)
lens that focus on the boolean located at a path in an array
|
fun.optic.Option<JsArray,Boolean> |
JsOptics.JsArrayOptionals.bool(JsPath path)
optional that focus on the boolean located at a path in an array
|
fun.optic.Option<JsObj,Boolean> |
JsOptics.JsObjOptional.bool(JsPath path)
optional that focus on the boolean located at a path in an object
|
fun.optic.Lens<JsObj,Boolean> |
JsOptics.JsObjLenses.bool(JsPath path)
lens that focus on a boolean located at a path in an object.
|
int |
JsPath.compareTo(JsPath that)
Compares this path with another given as a parameter by comparing in order each of their positions,
one by one, until a result different from zero is returned or all the positions of any path are
consumed.
|
default boolean |
Json.containsPath(JsPath path)
Returns true if an element exists in this json at the given path.
|
fun.optic.Lens<JsArray,BigDecimal> |
JsOptics.JsArrayLenses.decimalNum(JsPath path)
lens that focus on the decimal number located at a path in an array
|
fun.optic.Option<JsArray,BigDecimal> |
JsOptics.JsArrayOptionals.decimalNum(JsPath path)
optional that focus on the decimal number located at a path in an array
|
fun.optic.Option<JsObj,BigDecimal> |
JsOptics.JsObjOptional.decimalNum(JsPath path)
optional that focus on the decimal number located at a path in an object
|
fun.optic.Lens<JsObj,BigDecimal> |
JsOptics.JsObjLenses.decimalNum(JsPath path)
lens that focus on a decimal number located at a path in an object.
|
JsArray |
JsArray.delete(JsPath path) |
JsObj |
JsObj.delete(JsPath path) |
T |
Json.delete(JsPath path)
Removes the element in this json located at the given path, if it exists, returning the same this
instance otherwise
|
fun.optic.Lens<JsArray,Double> |
JsOptics.JsArrayLenses.doubleNum(JsPath path)
lens that focus on the double number located at a path in an array
|
fun.optic.Option<JsArray,Double> |
JsOptics.JsArrayOptionals.doubleNum(JsPath path)
optional that focus on the double number located at a path in an array
|
fun.optic.Option<JsObj,Double> |
JsOptics.JsObjOptional.doubleNum(JsPath path)
optional that focus on the double number located at a path in an object
|
fun.optic.Lens<JsObj,Double> |
JsOptics.JsObjLenses.doubleNum(JsPath path)
lens that focus on a double number located at a path in an object.
|
boolean |
JsPath.endsWith(JsPath path)
returns true if this path ends with the given path.
|
JsValue |
JsArray.get(JsPath path) |
JsValue |
JsObj.get(JsPath path) |
JsValue |
Json.get(JsPath path)
Returns the element located at the given path or
JsNothing if it doesn't exist. |
default JsArray |
Json.getArray(JsPath path)
Returns the array located at the given path or null if it doesn't exist or it's not an array.
|
default JsArray |
Json.getArray(JsPath path,
Supplier<JsArray> orElse)
Returns the array located at the given path or the default value provided if it doesn't exist or it's not an array.
|
default BigDecimal |
Json.getBigDec(JsPath path)
Returns the number located at the given path as a big decimal or null if
it doesn't exist or it's not a decimal number.
|
default BigDecimal |
Json.getBigDec(JsPath path,
Supplier<BigDecimal> orElse)
Returns the number located at the given path as a big decimal or the default value if
it doesn't exist or it's not a decimal number.
|
default BigInteger |
Json.getBigInt(JsPath path)
Returns the number located at the given path as a big integer or null if it doesn't
exist or it's not an integral number.
|
default BigInteger |
Json.getBigInt(JsPath path,
Supplier<BigInteger> orElse)
Returns the number located at the given path as a big integer or the default value if it doesn't
exist or it's not an integral number.
|
default byte[] |
Json.getBinary(JsPath path)
Returns the bytes located at the given path or null if it doesn't exist.
|
default byte[] |
Json.getBinary(JsPath path,
Supplier<byte[]> orElse)
Returns the bytes located at the given path or the default value provided if it doesn't exist.
|
default Boolean |
Json.getBool(JsPath path)
Returns the boolean located at the given path or null if it doesn't exist.
|
default Boolean |
Json.getBool(JsPath path,
Supplier<Boolean> orElse)
Returns the boolean located at the given path or the default value provided if it doesn't exist.
|
default Double |
Json.getDouble(JsPath path)
Returns the decimal number located at the given path as a double or null if it
doesn't exist or it's not a decimal number.
|
default Double |
Json.getDouble(JsPath path,
Supplier<Double> orElse)
Returns the decimal number located at the given path as a double or the default value provided if it
doesn't exist or it's not a decimal number.
|
default Instant |
Json.getInstant(JsPath path)
Returns the instant located at the given path or null if it doesn't exist.
|
default Instant |
Json.getInstant(JsPath path,
Supplier<Instant> orElse)
Returns the instant located at the given path or the default value provided if it doesn't exist.
|
default Integer |
Json.getInt(JsPath path)
Returns the integral number located at the given path as an integer or null 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.
|
default Integer |
Json.getInt(JsPath path,
Supplier<Integer> orElse)
Returns the integral number located at the given path as an integer or the default value provided 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.
|
default Long |
Json.getLong(JsPath path)
Returns the integral number located at the given path as a long or null 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.
|
default Long |
Json.getLong(JsPath path,
Supplier<Long> orElse)
Returns the integral number located at the given path as a long or the default value provided
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.
|
default JsObj |
Json.getObj(JsPath path)
Returns the object located at the given path or null if it doesn't exist or it's
not an object.
|
default JsObj |
Json.getObj(JsPath path,
Supplier<JsObj> orElse)
Returns the object located at the given path or the default value provided if
it doesn't exist or it's not an object.
|
default String |
Json.getStr(JsPath path)
Returns the string located at the given path or null if it doesn't exist or it's
not an string.
|
default String |
Json.getStr(JsPath path,
Supplier<String> orElse)
Returns the string located at the given path or the default value provided if
it doesn't exist or it's not an string.
|
fun.optic.Lens<JsArray,Instant> |
JsOptics.JsArrayLenses.instant(JsPath path)
lens that focus on the array of bytes located at a path in an array
|
fun.optic.Option<JsArray,Instant> |
JsOptics.JsArrayOptionals.instant(JsPath path)
optional that focus on the instant located at a path in an array
|
fun.optic.Option<JsObj,Instant> |
JsOptics.JsObjOptional.instant(JsPath path)
optional that focus on the instant located at a path in an object
|
fun.optic.Lens<JsObj,Instant> |
JsOptics.JsObjLenses.instant(JsPath path)
lens that focus on an instant located at a path in an object.
|
fun.optic.Lens<JsArray,BigInteger> |
JsOptics.JsArrayLenses.integralNum(JsPath path)
lens that focus on the integral number located at a path in an array
|
fun.optic.Option<JsArray,BigInteger> |
JsOptics.JsArrayOptionals.integralNum(JsPath path)
optional that focus on the integral number located at a path in an array
|
fun.optic.Option<JsObj,BigInteger> |
JsOptics.JsObjOptional.integralNum(JsPath path)
optional that focus on the integral number located at a path in an object
|
fun.optic.Lens<JsObj,BigInteger> |
JsOptics.JsObjLenses.integralNum(JsPath path)
lens that focus on a integral number located at a path in an object.
|
fun.optic.Lens<JsArray,Integer> |
JsOptics.JsArrayLenses.intNum(JsPath path)
lens that focus on the integer number located at a path in an array
|
fun.optic.Option<JsArray,Integer> |
JsOptics.JsArrayOptionals.intNum(JsPath path)
optional that focus on the integer number located at a path in an array
|
fun.optic.Option<JsObj,Integer> |
JsOptics.JsObjOptional.intNum(JsPath path)
optional that focus on the integer number located at a path in an object
|
fun.optic.Lens<JsObj,Integer> |
JsOptics.JsObjLenses.intNum(JsPath path)
lens that focus on a integer number located at a path in an object.
|
fun.optic.Lens<JsArray,Long> |
JsOptics.JsArrayLenses.longNum(JsPath path)
lens that focus on the long number located at a path in an array
|
fun.optic.Option<JsArray,Long> |
JsOptics.JsArrayOptionals.longNum(JsPath path)
optional that focus on the long number located at a path in an array
|
fun.optic.Option<JsObj,Long> |
JsOptics.JsObjOptional.longNum(JsPath path)
optional that focus on the long number located at a path in an object
|
fun.optic.Lens<JsObj,Long> |
JsOptics.JsObjLenses.longNum(JsPath path)
lens that focus on a long number located at a path in an object.
|
fun.optic.Lens<JsArray,JsObj> |
JsOptics.JsArrayLenses.obj(JsPath path)
lens that focus on the json object located at a path in an array
|
fun.optic.Option<JsArray,JsObj> |
JsOptics.JsArrayOptionals.obj(JsPath path)
optional that focus on the object located at a path in an array
|
fun.optic.Option<JsObj,JsObj> |
JsOptics.JsObjOptional.obj(JsPath path)
optional that focus on the object located at a path in an object
|
fun.optic.Lens<JsObj,JsObj> |
JsOptics.JsObjLenses.obj(JsPath path)
lens that focus on a json object located at a path in an object.
|
static JsObj |
JsObj.of(JsPath path,
JsValue el) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13,
JsPath path14,
JsValue el14) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13,
JsPath path14,
JsValue el14,
JsPath path15,
JsValue el15) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13,
JsPath path14,
JsValue el14,
JsPath path15,
JsValue el15,
JsPath path16,
JsValue el16) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13,
JsPath path14,
JsValue el14,
JsPath path15,
JsValue el15,
JsPath path16,
JsValue el16,
JsPath path17,
JsValue el17) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13,
JsPath path14,
JsValue el14,
JsPath path15,
JsValue el15,
JsPath path16,
JsValue el16,
JsPath path17,
JsValue el17,
JsPath path18,
JsValue el18) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13,
JsPath path14,
JsValue el14,
JsPath path15,
JsValue el15,
JsPath path16,
JsValue el16,
JsPath path17,
JsValue el17,
JsPath path18,
JsValue el18,
JsPath path19,
JsValue el19) |
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3,
JsPath path4,
JsValue el4,
JsPath path5,
JsValue el5,
JsPath path6,
JsValue el6,
JsPath path7,
JsValue el7,
JsPath path8,
JsValue el8,
JsPath path9,
JsValue el9,
JsPath path10,
JsValue el10,
JsPath path11,
JsValue el11,
JsPath path12,
JsValue el12,
JsPath path13,
JsValue el13,
JsPath path14,
JsValue el14,
JsPath path15,
JsValue el15,
JsPath path16,
JsValue el16,
JsPath path17,
JsValue el17,
JsPath path18,
JsValue el18,
JsPath path19,
JsValue el19,
JsPath path20,
JsValue el20) |
static UserError |
UserError.pathHeadIsNotAKey(JsPath path) |
static UserError |
UserError.pathHeadIsNotAnIndex(JsPath path) |
JsPath |
JsPath.prepend(JsPath path)
Creates a new JsPath prepending the given path to this path.
|
JsArray |
JsArray.set(JsPath path,
JsValue element) |
JsObj |
JsObj.set(JsPath path,
JsValue element) |
default T |
Json.set(JsPath path,
JsValue element)
Inserts the element at the path in this json, replacing any existing element and filling with
JsNull empty indexes in arrays when necessary. |
JsArray |
JsArray.set(JsPath path,
JsValue value,
JsValue padElement) |
JsObj |
JsObj.set(JsPath path,
JsValue value,
JsValue padElement) |
T |
Json.set(JsPath path,
JsValue element,
JsValue padElement)
Inserts the element at the path in this json, replacing any existing element and filling with padElement
empty indexes in arrays when necessary.
|
boolean |
JsPath.startsWith(JsPath path)
returns true if this path starts with the given path.
|
fun.optic.Lens<JsArray,String> |
JsOptics.JsArrayLenses.str(JsPath path)
lens that focus on the string located at a path in an array
|
fun.optic.Option<JsArray,String> |
JsOptics.JsArrayOptionals.str(JsPath path)
optional that focus on the string located at a path in an array
|
fun.optic.Option<JsObj,String> |
JsOptics.JsObjOptional.str(JsPath path)
optional that focus on the string located at a path in an object
|
fun.optic.Lens<JsObj,String> |
JsOptics.JsObjLenses.str(JsPath path)
lens that focus on a string located at a path in an object.
|
fun.optic.Lens<JsArray,JsValue> |
JsOptics.JsArrayLenses.value(JsPath path)
lens that focus on the value located at a path in an array
|
fun.optic.Lens<JsObj,JsValue> |
JsOptics.JsObjLenses.value(JsPath path)
lens that focus on a value located at a path in an object.
|
Modifier and Type | Method and Description |
---|---|
JsArray |
JsArray.filterAllKeys(BiPredicate<? super JsPath,? super JsValue> filter) |
JsObj |
JsObj.filterAllKeys(BiPredicate<? super JsPath,? super JsValue> filter) |
T |
Json.filterAllKeys(BiPredicate<? super JsPath,? super JsValue> filter)
Filters all the keys of this json, removing those that don't ifPredicateElse the predicate.
|
JsArray |
JsArray.filterAllObjs(BiPredicate<? super JsPath,? super JsObj> filter) |
JsObj |
JsObj.filterAllObjs(BiPredicate<? super JsPath,? super JsObj> filter) |
T |
Json.filterAllObjs(BiPredicate<? super JsPath,? super JsObj> filter)
Filters all the pair of jsons of this json, removing those that don't ifPredicateElse the predicate.
|
JsArray |
JsArray.filterAllValues(BiPredicate<? super JsPath,? super JsPrimitive> filter) |
JsObj |
JsObj.filterAllValues(BiPredicate<? super JsPath,? super JsPrimitive> filter) |
T |
Json.filterAllValues(BiPredicate<? super JsPath,? super JsPrimitive> filter)
Filters all the pairs of elements of this json, removing those that don't ifPredicateElse the predicate.
|
JsArray |
JsArray.mapAllKeys(BiFunction<? super JsPath,? super JsValue,String> fn) |
JsObj |
JsObj.mapAllKeys(BiFunction<? super JsPath,? super JsValue,String> fn) |
T |
Json.mapAllKeys(BiFunction<? super JsPath,? super JsValue,String> fn)
Maps all the keys of this json.
|
JsArray |
JsArray.mapAllObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn) |
JsObj |
JsObj.mapAllObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn) |
T |
Json.mapAllObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn)
Maps all the jsons of this json.
|
JsArray |
JsArray.mapAllValues(BiFunction<? super JsPath,? super JsPrimitive,? extends JsValue> fn) |
JsObj |
JsObj.mapAllValues(BiFunction<? super JsPath,? super JsPrimitive,? extends JsValue> fn) |
T |
Json.mapAllValues(BiFunction<? super JsPath,? super JsPrimitive,? extends JsValue> fn)
Maps all the values of this json.
|
<R> Optional<R> |
JsArray.reduceAll(BinaryOperator<R> op,
BiFunction<? super JsPath,? super JsPrimitive,R> map,
BiPredicate<? super JsPath,? super JsPrimitive> predicate) |
<R> Optional<R> |
JsArray.reduceAll(BinaryOperator<R> op,
BiFunction<? super JsPath,? super JsPrimitive,R> map,
BiPredicate<? super JsPath,? super JsPrimitive> predicate) |
<R> Optional<R> |
JsObj.reduceAll(BinaryOperator<R> op,
BiFunction<? super JsPath,? super JsPrimitive,R> map,
BiPredicate<? super JsPath,? super JsPrimitive> predicate) |
<R> Optional<R> |
JsObj.reduceAll(BinaryOperator<R> op,
BiFunction<? super JsPath,? super JsPrimitive,R> map,
BiPredicate<? super JsPath,? super JsPrimitive> predicate) |
<R> Optional<R> |
Json.reduceAll(BinaryOperator<R> op,
BiFunction<? super JsPath,? super JsPrimitive,R> map,
BiPredicate<? super JsPath,? super JsPrimitive> predicate)
Performs a reduction on the values of this json that satisfy the predicate.
|
<R> Optional<R> |
Json.reduceAll(BinaryOperator<R> op,
BiFunction<? super JsPath,? super JsPrimitive,R> map,
BiPredicate<? super JsPath,? super JsPrimitive> predicate)
Performs a reduction on the values of this json that satisfy the predicate.
|
Modifier and Type | Field and Description |
---|---|
JsPath |
SpecError.path |
Modifier and Type | Method and Description |
---|---|
Set<SpecError> |
JsSpec.test(JsPath parentPath,
JsValue value)
verify if the given value satisfy this spec.
|
Set<SpecError> |
JsObjSpec.test(JsPath parentPath,
JsValue value) |
Set<SpecError> |
JsArrayOfJsObjSpec.test(JsPath parentPath,
JsValue value) |
Set<SpecError> |
JsTupleSpec.test(JsPath parentPath,
JsValue value) |
Copyright © 2022. All rights reserved.