Package | Description |
---|---|
com.dslplatform.json | |
jsonvalues | |
jsonvalues.gen | |
jsonvalues.spec |
Modifier and Type | Method and Description |
---|---|
JsObj |
MyDslJson.parseToJsObj(byte[] bytes,
JsSpecParser parser) |
JsObj |
MyDslJson.parseToJsObj(InputStream is,
JsSpecParser parser) |
Modifier and Type | Method and Description |
---|---|
JsSpecParser |
JsSpecParsers.ofArrayOfObjEachSuchThat(Function<JsObj,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p,
boolean nullable,
int min,
int max) |
JsSpecParser |
JsSpecParsers.ofArrayOfObjSpec(List<String> required,
Map<String,JsSpecParser> parsers,
Predicate<JsObj> predicate,
boolean strict,
boolean nullable,
int min,
int max) |
JsSpecParser |
JsSpecParsers.ofObjSpec(List<String> required,
Map<String,JsSpecParser> keyDeserializers,
Predicate<JsObj> predicate,
boolean nullable,
boolean strict) |
JsSpecParser |
JsSpecParsers.ofObjSuchThat(Function<JsObj,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate,
boolean nullable) |
Modifier and Type | Field and Description |
---|---|
static JsObj |
JsObj.EMPTY |
Modifier and Type | Field and Description |
---|---|
static fun.optic.Prism<JsValue,JsObj> |
JsObj.prism
prism between the sum type JsValue and JsObj
|
Modifier and Type | Method and Description |
---|---|
JsObj |
JsObj.delete(JsPath path) |
JsObj |
JsObj.delete(String key) |
static JsObj |
JsObj.empty() |
JsObj |
JsObj.filterKeys(BiPredicate<? super JsPath,? super JsValue> filter) |
JsObj |
JsObj.filterKeys(Predicate<? super String> filter) |
JsObj |
JsObj.filterObjs(BiPredicate<? super JsPath,? super JsObj> filter) |
JsObj |
JsObj.filterObjs(Predicate<? super JsObj> filter) |
JsObj |
JsObj.filterValues(BiPredicate<? super JsPath,? super JsPrimitive> filter) |
JsObj |
JsObj.filterValues(Predicate<? super JsPrimitive> filter) |
JsObj |
JsArray.getObj(int index)
Returns the object located at the given index or null if it doesn't exist or it's not a json object.
|
JsObj |
JsArray.getObj(int index,
Supplier<JsObj> orElse)
Returns the object located at the given index or the default value provided if it doesn't exist or
it's not a json object.
|
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.
|
JsObj |
JsObj.getObj(String key)
Returns the json object located at the given key or null if it doesn't exist or it's not an object.
|
JsObj |
JsObj.getObj(String key,
Supplier<JsObj> orElse)
Returns the json object located at the given key or the default value provided
if it doesn't exist or it's not an object.
|
JsObj |
JsObj.intersection(JsObj that,
JsArray.TYPE ARRAY_AS)
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. |
JsObj |
JsObj.mapKeys(BiFunction<? super JsPath,? super JsValue,String> fn) |
JsObj |
JsObj.mapKeys(Function<? super String,String> fn) |
JsObj |
JsObj.mapObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn) |
JsObj |
JsObj.mapObjs(Function<? super JsObj,? extends JsValue> fn) |
JsObj |
JsObj.mapValues(BiFunction<? super JsPath,? super JsPrimitive,? extends JsValue> fn) |
JsObj |
JsObj.mapValues(Function<? super JsPrimitive,? extends JsValue> fn) |
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 JsObj |
JsObj.of(String key,
JsValue el) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17,
String key18,
JsValue el18) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17,
String key18,
JsValue el18,
String key19,
JsValue el19) |
static JsObj |
JsObj.of(String key1,
JsValue el1,
String key2,
JsValue el2,
String key3,
JsValue el3,
String key4,
JsValue el4,
String key5,
JsValue el5,
String key6,
JsValue el6,
String key7,
JsValue el7,
String key8,
JsValue el8,
String key9,
JsValue el9,
String key10,
JsValue el10,
String key11,
JsValue el11,
String key12,
JsValue el12,
String key13,
JsValue el13,
String key14,
JsValue el14,
String key15,
JsValue el15,
String key16,
JsValue el16,
String key17,
JsValue el17,
String key18,
JsValue el18,
String key19,
JsValue el19,
String key20,
JsValue el20) |
static JsObj |
JsObj.parse(String str)
Tries to parse the string into an immutable JSON object.
|
static JsObj |
JsObj.parseYaml(String str)
Tries to parse a YAML string into an immutable JSON object.
|
JsObj |
JsObj.set(JsPath path,
JsValue element) |
JsObj |
JsObj.set(JsPath path,
JsValue value,
JsValue padElement) |
JsObj |
JsObj.set(String key,
JsValue value)
Inserts the element at the key in this json, replacing any existing element.
|
default JsObj |
JsValue.toJsObj()
Returns this JsValue as a JsObj
|
JsObj |
JsObj.union(JsObj that,
JsArray.TYPE ARRAY_AS)
returns
this json object plus those pairs from the given json object that which
keys don't exist in this . |
Modifier and Type | Method and Description |
---|---|
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.Option<JsObj,JsArray> |
JsOptics.JsObjOptional.array(String key)
optional that focus on the array located at a key in an object
|
fun.optic.Lens<JsObj,JsArray> |
JsOptics.JsObjLenses.array(String key)
lens that focus on a json array located at a key in an object.
|
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.Option<JsObj,byte[]> |
JsOptics.JsObjOptional.binary(String key)
optional that focus on the array of bytes located at a key in an object
|
fun.optic.Lens<JsObj,byte[]> |
JsOptics.JsObjLenses.binary(String key)
lens that focus on an array of bytes located at a key in an object.
|
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.
|
fun.optic.Option<JsObj,Boolean> |
JsOptics.JsObjOptional.bool(String key)
optional that focus on the boolean located at a key in an object
|
fun.optic.Lens<JsObj,Boolean> |
JsOptics.JsObjLenses.bool(String key)
lens that focus on a boolean located at a path in an object.
|
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.
|
fun.optic.Option<JsObj,BigDecimal> |
JsOptics.JsObjOptional.decimalNum(String key)
optional that focus on the decimal number located at a key in an object
|
fun.optic.Lens<JsObj,BigDecimal> |
JsOptics.JsObjLenses.decimalNum(String key)
lens that focus on a decimal number located at a key in an object.
|
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.
|
fun.optic.Option<JsObj,Double> |
JsOptics.JsObjOptional.doubleNum(String key)
optional that focus on the double number located at a key in an object
|
fun.optic.Lens<JsObj,Double> |
JsOptics.JsObjLenses.doubleNum(String key)
lens that focus on a double number located at a key in an object.
|
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.Option<JsObj,Instant> |
JsOptics.JsObjOptional.instant(String key)
optional that focus on the instant located at a key in an object
|
fun.optic.Lens<JsObj,Instant> |
JsOptics.JsObjLenses.instant(String key)
lens that focus on an instant located at a key in an object.
|
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.Option<JsObj,BigInteger> |
JsOptics.JsObjOptional.integralNum(String key)
optional that focus on the bigint number located at a path in an object
|
fun.optic.Lens<JsObj,BigInteger> |
JsOptics.JsObjLenses.integralNum(String key)
lens that focus on a integral number located at a key in an object.
|
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.Option<JsObj,Integer> |
JsOptics.JsObjOptional.intNum(String key)
optional that focus on the integer number located at a key in an object
|
fun.optic.Lens<JsObj,Integer> |
JsOptics.JsObjLenses.intNum(String key)
lens that focus on a integer number located at a key in an object.
|
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.Option<JsObj,Long> |
JsOptics.JsObjOptional.longNum(String key)
optional that focus on the long number located at a key in an object
|
fun.optic.Lens<JsObj,Long> |
JsOptics.JsObjLenses.longNum(String key)
lens that focus on a long number located at a key in an object.
|
fun.optic.Lens<JsArray,JsObj> |
JsOptics.JsArrayLenses.obj(int index)
lens that focus on the json object located at an index in an array
|
fun.optic.Option<JsArray,JsObj> |
JsOptics.JsArrayOptionals.obj(int index)
optional that focus on the json object located at an index in an array
|
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.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.
|
fun.optic.Lens<JsObj,JsObj> |
JsOptics.JsObjLenses.obj(JsPath path)
lens that focus on a json object located at a path in an object.
|
fun.optic.Option<JsObj,JsObj> |
JsOptics.JsObjOptional.obj(String key)
optional that focus on the object located at a key in an object
|
fun.optic.Option<JsObj,JsObj> |
JsOptics.JsObjOptional.obj(String key)
optional that focus on the object located at a key in an object
|
fun.optic.Lens<JsObj,JsObj> |
JsOptics.JsObjLenses.obj(String key)
lens that focus on a json object located at a key in an object.
|
fun.optic.Lens<JsObj,JsObj> |
JsOptics.JsObjLenses.obj(String key)
lens that focus on a json object located at a key in an object.
|
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.Option<JsObj,String> |
JsOptics.JsObjOptional.str(String key)
optional that focus on the string located at a key in an object
|
fun.optic.Lens<JsObj,String> |
JsOptics.JsObjLenses.str(String key)
lens that focus on a string located at a key in an object.
|
fun.optic.Lens<JsObj,JsValue> |
JsOptics.JsObjLenses.value(JsPath path)
lens that focus on a value located at a path in an object.
|
fun.optic.Lens<JsObj,JsValue> |
JsOptics.JsObjLenses.value(String key)
lens that focus on a value located at a key in an object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
JsObj.equals(JsObj that,
JsArray.TYPE ARRAY_AS)
return true if this obj is equal to the given as a parameter.
|
JsObj |
JsObj.intersection(JsObj that,
JsArray.TYPE ARRAY_AS)
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. |
JsObj |
JsObj.union(JsObj that,
JsArray.TYPE ARRAY_AS)
returns
this json object plus those pairs from the given json object that which
keys don't exist in this . |
Modifier and Type | Method and Description |
---|---|
JsArray |
JsArray.filterObjs(BiPredicate<? super JsPath,? super JsObj> filter) |
JsObj |
JsObj.filterObjs(BiPredicate<? super JsPath,? super JsObj> filter) |
T |
Json.filterObjs(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.filterObjs(Predicate<? super JsObj> filter) |
JsObj |
JsObj.filterObjs(Predicate<? super JsObj> filter) |
T |
Json.filterObjs(Predicate<? super JsObj> filter)
Filters all the pair of jsons of this json, removing those that don't ifPredicateElse the predicate.
|
JsObj |
JsArray.getObj(int index,
Supplier<JsObj> orElse)
Returns the object located at the given index or the default value provided if it doesn't exist or
it's not a json 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.
|
JsObj |
JsObj.getObj(String key,
Supplier<JsObj> orElse)
Returns the json object located at the given key or the default value provided
if it doesn't exist or it's not an object.
|
default boolean |
JsValue.isObj(Predicate<JsObj> predicate)
Returns true if this elem is a JsObj and satisfies the given predicate
|
JsArray |
JsArray.mapObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn) |
JsObj |
JsObj.mapObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn) |
T |
Json.mapObjs(BiFunction<? super JsPath,? super JsObj,? extends JsValue> fn)
Maps all the jsons of this json.
|
JsArray |
JsArray.mapObjs(Function<? super JsObj,? extends JsValue> fn) |
JsObj |
JsObj.mapObjs(Function<? super JsObj,? extends JsValue> fn) |
T |
Json.mapObjs(Function<? super JsObj,? extends JsValue> fn)
Maps all the jsons of this json.
|
Modifier and Type | Method and Description |
---|---|
Supplier<JsObj> |
JsObjGen.apply(Random seed)
Returns a supplier from the specified seed that generates a new JsObj each time it's called
|
fun.gen.Gen<JsObj> |
JsObjGen.suchThat(JsObjSpec spec)
Creates a generator that generates values from this gen that satisfy the specified
spec.
|
fun.gen.Gen<JsObj> |
JsObjGen.suchThat(JsObjSpec spec,
int tries)
Creates a generator that generates values from this gen that satisfy the specified
spec.
|
fun.gen.Gen<JsObj> |
JsObjGen.suchThatNo(JsObjSpec spec)
Creates a generator that generates values from this gen that doesn't satisfy the specified
spec.
|
fun.gen.Gen<JsObj> |
JsObjGen.suchThatNo(JsObjSpec spec,
int tries)
Creates a generator that generates values from this gen that doesn't satisfy the specified
spec.
|
Modifier and Type | Method and Description |
---|---|
JsObj |
JsObjParser.parse(byte[] bytes)
parses an array of bytes into a Json object that must conform the spec of the parser.
|
JsObj |
JsObjParser.parse(InputStream inputstream)
parses an input stream of bytes into a Json object that must conform the spec of the parser.
|
JsObj |
JsObjParser.parse(String str)
parses a string into a Json object that must conform the spec of the parser.
|
Modifier and Type | Method and Description |
---|---|
static JsArraySpec |
JsSpecs.arrayOfObj(Predicate<JsObj> predicate)
non-nullable array of objects, where each element of the array satisfies
the given predicate
|
static JsArraySpec |
JsSpecs.arrayOfObj(Predicate<JsObj> predicate,
int minLength,
int maxLength)
non-nullable array of objects, where each element of the array satisfies
the given predicate
|
static JsSpec |
JsSpecs.obj(Predicate<JsObj> predicate)
non-nullable json object that satisfies the given predicate
|
JsObjSpec |
JsObjSpec.suchThat(Predicate<JsObj> predicate) |
Copyright © 2022. All rights reserved.