Modifier and Type | Field | Description |
---|---|---|
static long |
serialVersionUID |
Modifier and Type | Method | Description |
---|---|---|
static Collector<JsPair,JsObj,JsObj> |
_collector_() |
Returns a collector that accumulates the pairs from a stream into an mutable object.
|
static JsObj |
_empty_() |
Returns a mutable empty object.
|
static JsObj |
_of_(String key,
JsElem el) |
Returns a mutable one-pair object.
|
static JsObj |
_of_(String key1,
JsElem el1,
String key2,
JsElem el2) |
Returns a mutable two-pair object.
|
static JsObj |
_of_(String key1,
JsElem el1,
String key2,
JsElem el2,
String key3,
JsElem el3) |
Returns a mutable three-pair object.
|
static JsObj |
_of_(String key1,
JsElem el1,
String key2,
JsElem el2,
String key3,
JsElem el3,
String key4,
JsElem el4) |
Returns a mutable four-pair object.
|
static JsObj |
_of_(String key1,
JsElem el1,
String key2,
JsElem el2,
String key3,
JsElem el3,
String key4,
JsElem el4,
String key5,
JsElem el5) |
Returns a mutable five-pair object.
|
static JsObj |
_of_(String key1,
JsElem el1,
String key2,
JsElem el2,
String key3,
JsElem el3,
String key4,
JsElem el4,
String key5,
JsElem el5,
String key6,
JsElem el6) |
Returns a mutable six-pair object.
|
static JsObj |
_of_(Map<String,JsElem> map) |
Returns a mutable object from a map of elements.
|
static JsObj |
_of_(JsPair pair,
JsPair... others) |
Returns a mutable object from one or more pairs.
|
static TryObj |
_parse_(String str) |
Tries to parse the string into a mutable json object.
|
static TryObj |
_parse_(String str,
ParseOptions options) |
Tries to parse the string into an mutable object, performing some operations while the parsing.
|
static Collector<JsPair,JsObj,JsObj> |
collector() |
Returns a collector that accumulates the pairs from a stream into an immutable object.
|
static JsObj |
empty() |
Returns the immutable empty object.
|
default boolean |
equals(JsObj that,
JsArray.TYPE ARRAY_AS) |
return true if this obj is equal to the given as a parameter.
|
Set<String> |
fields() |
Returns a set containing each key fo this object.
|
Map.Entry<String,JsElem> |
head() |
Returns a pair with an arbitrary key of this object and its associated element.
|
JsObj |
intersection(JsObj that,
JsArray.TYPE ARRAY_AS) |
Returns the intersection of this object and another, defining characteristics like order and duplicates
occurrence in arrays with the given ARRAY_AS parameter.
|
JsObj |
intersection_(JsObj that,
JsArray.TYPE ARRAY_AS) |
Returns the intersection of this object and another given as parameter applying recursively
the intersection to those elements which are Json of the same type and are located at the same key
and defining characteristics like order and duplicates occurrence in arrays with the given ARRAY_AS
parameter.
|
static JsObj |
of(String key,
JsElem el) |
Returns an immutable one-element object.
|
static JsObj |
of(String key1,
JsElem el1,
String key2,
JsElem el2) |
Returns a two-element immutable object.
|
static JsObj |
of(String key1,
JsElem el1,
String key2,
JsElem el2,
String key3,
JsElem el3) |
Returns a three-element immutable json object.
|
static JsObj |
of(String key1,
JsElem el1,
String key2,
JsElem el2,
String key3,
JsElem el3,
String key4,
JsElem el4) |
Returns a four-element immutable object.
|
static JsObj |
of(String key1,
JsElem el1,
String key2,
JsElem el2,
String key3,
JsElem el3,
String key4,
JsElem el4,
String key5,
JsElem el5) |
Returns a five-element immutable object.
|
static JsObj |
of(String key1,
JsElem el1,
String key2,
JsElem el2,
String key3,
JsElem el3,
String key4,
JsElem el4,
String key5,
JsElem el5,
String key6,
JsElem el6) |
Returns a six-element immutable object.
|
static JsObj |
of(Map<String,JsElem> map) |
Returns a immutable object from a map of elements.
|
static JsObj |
of(JsPair pair,
JsPair... others) |
Returns an immutable object from one or more pairs.
|
static TryObj |
parse(String str) |
Tries to parse the string into an immutable object.
|
static TryObj |
parse(String str,
ParseOptions options) |
Tries to parse the string into an immutable object, performing some operations during the parsing.
|
default JsObj |
remove(String key) |
Removes the key from this object if it's present.
|
JsObj |
tail(String key) |
Returns a new object with all the entries of this json object except the one with the given key.
|
JsObj |
union(JsObj that) |
Returns the union of this object and another given as a parameter.
|
JsObj |
union_(JsObj that,
JsArray.TYPE ARRAY_AS) |
Returns the union of this object and another given as parameter applying recursively the union
to those elements which are Json of the same type and are located at the same key
and defining characteristics like order and duplicates occurrence in arrays with the given ARRAY_AS
parameter.
|
forEach, iterator, spliterator
asJsArray, asJsBigDec, asJsBigInt, asJsBool, asJsDouble, asJsInt, asJsLong, asJsObj, asJson, asJsStr, isArray, isArray, isBigDec, isBigDec, isBigInt, isBigInt, isBool, isDouble, isDouble, isFalse, isInstant, isInstant, isInt, isInt, isIntegral, isJson, isJson, isLocalDate, isLocalDate, isLocalDateTime, isLocalDateTime, isLong, isLong, isNothing, isNotJson, isNotNothing, isNotNull, isNotNumber, isNull, isNumber, isObj, isObj, isStr, isStr, isTrue
append, append, append, append, append, append, append, append, append, append, append, append, append, append, appendAll, appendAll, appendAllIfPresent, appendAllIfPresent, appendIfPresent, appendIfPresent, appendIfPresent, appendIfPresent, appendIfPresent, appendIfPresent, appendIfPresent, appendIfPresent, appendIfPresent, appendIfPresent, appendIfPresent, appendIfPresent, containsElem, containsElem_, containsPath, containsPath, equals, filterElems, filterElems_, filterKeys, filterKeys_, filterObjs, filterObjs_, get, get, get, getArray, getArray, getBigDecimal, getBigDecimal, getBigInt, getBigInt, getBool, getBool, getDouble, getDouble, getInt, getInt, getLong, getLong, getObj, getObj, getStr, getStr, ifEmptyElse, isEmpty, isImmutable, isMutable, isNotEmpty, map, mapElems, mapElems, mapElems_, mapElems_, mapKeys, mapKeys, mapKeys_, mapKeys_, mapObjs, mapObjs, mapObjs_, mapObjs_, merge, merge, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prependAll, prependAll, prependAllIfPresent, prependAllIfPresent, prependIfPresent, prependIfPresent, prependIfPresent, prependIfPresent, prependIfPresent, prependIfPresent, prependIfPresent, prependIfPresent, prependIfPresent, prependIfPresent, prependIfPresent, prependIfPresent, put, put, put, put, put, put, put, put, put, put, putIf, putIf, putIfAbsent, putIfAbsent, putIfAbsent, putIfAbsent, putIfAbsent, putIfAbsent, putIfAbsent, putIfAbsent, putIfPresent, putIfPresent, putIfPresent, putIfPresent, putIfPresent, putIfPresent, putIfPresent, putIfPresent, reduce, reduce_, remove, size, size, size, size_, size_, size_, stream, stream_, times, times_, toImmutable, toMutable
static final long serialVersionUID
static JsObj _empty_()
static JsObj _of_(String key, JsElem el)
key
- name of the keyel
- JsElem to be associated to the keyUnsupportedOperationException
- if the elem is an immutable Jsonstatic JsObj _of_(String key1, JsElem el1, String key2, JsElem el2)
key1
- name of a keyel1
- JsElem to be associated to the key1key2
- name of a keyel2
- JsElem to be associated to the key2UnsupportedOperationException
- if an elem is an immutable Jsonstatic JsObj _of_(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3)
key1
- name of a keyel1
- JsElem to be associated to the key1key2
- name of a keyel2
- JsElem to be associated to the key2key3
- name of a keyel3
- JsElem to be associated to the key3UnsupportedOperationException
- if an elem is an immutable Jsonstatic JsObj _of_(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3, String key4, JsElem el4)
key1
- name of a keyel1
- JsElem to be associated to the key1key2
- name of a keyel2
- JsElem to be associated to the key2key3
- name of a keyel3
- JsElem to be associated to the key3key4
- name of a keyel4
- JsElem to be associated to the key4UnsupportedOperationException
- if an elem is an immutable Jsonstatic JsObj _of_(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3, String key4, JsElem el4, String key5, JsElem el5)
key1
- name parse a keyel1
- JsElem to be associated to the key1key2
- name parse a keyel2
- JsElem to be associated to the key2key3
- name parse a keyel3
- JsElem to be associated to the key3key4
- name parse a keyel4
- JsElem to be associated to the key4key5
- name parse a keyel5
- JsElem to be associated to the key5UnsupportedOperationException
- if an elem is an immutable Jsonstatic JsObj _of_(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3, String key4, JsElem el4, String key5, JsElem el5, String key6, JsElem el6)
key1
- name parse a keyel1
- JsElem to be associated to the key1key2
- name parse a keyel2
- JsElem to be associated to the key2key3
- name parse a keyel3
- JsElem to be associated to the key3key4
- name parse a keyel4
- JsElem to be associated to the key4key5
- name parse a keyel5
- JsElem to be associated to the key5key6
- name parse a keyel6
- JsElem to be associated to the key6UnsupportedOperationException
- if an elem is an immutable Jsonstatic JsObj _of_(Map<String,JsElem> map)
map
- the map of JsElemUnsupportedOperationException
- if an elem of the map is an immutable Jsonstatic TryObj _parse_(String str)
str
- the string to be parsedTryObj
computationdefault boolean equals(JsObj that, JsArray.TYPE ARRAY_AS)
that
- the given arrayARRAY_AS
- enum to specify if arrays are considered as lists or sets or multisetsstatic TryObj _parse_(String str, ParseOptions options)
str
- string to be parsedoptions
- a Options with the filters and maps that will be applied during the parsingTryObj
computationstatic Collector<JsPair,JsObj,JsObj> collector()
static Collector<JsPair,JsObj,JsObj> _collector_()
static JsObj empty()
Set<String> fields()
Map.Entry<String,JsElem> head()
tail(String)
.Map.Entry<String,JsElem>
of this JsObjUnsupportedOperationException
- if this json object is emptystatic JsObj of(String key, JsElem el)
key
- name of the keyel
- JsElem to be associated to the keyUnsupportedOperationException
- if the elem is a mutable Jsonstatic JsObj of(String key1, JsElem el1, String key2, JsElem el2)
key1
- name of a keyel1
- JsElem to be associated to the key1key2
- name of a keyel2
- JsElem to be associated to the key2UnsupportedOperationException
- if an elem is a mutable Jsonstatic JsObj of(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3)
key1
- name of a keyel1
- JsElem to be associated to the key1key2
- name of a keyel2
- JsElem to be associated to the key2key3
- name of a keyel3
- JsElem to be associated to the key3UnsupportedOperationException
- if an elem is a mutable Jsonstatic JsObj of(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3, String key4, JsElem el4)
key1
- name of a keyel1
- JsElem to be associated to the key1key2
- name of a keyel2
- JsElem to be associated to the key2key3
- name of a keyel3
- JsElem to be associated to the key3key4
- name of a keyel4
- JsElem to be associated to the key4UnsupportedOperationException
- if an elem is a mutable Jsonstatic JsObj of(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3, String key4, JsElem el4, String key5, JsElem el5)
key1
- name of a keyel1
- JsElem to be associated to the key1key2
- name of a keyel2
- JsElem to be associated to the key2key3
- name of a keyel3
- JsElem to be associated to the key3key4
- name of a keyel4
- JsElem to be associated to the key4key5
- name of a keyel5
- JsElem to be associated to the key5UnsupportedOperationException
- if an elem is a mutable Jsonstatic JsObj of(String key1, JsElem el1, String key2, JsElem el2, String key3, JsElem el3, String key4, JsElem el4, String key5, JsElem el5, String key6, JsElem el6)
key1
- name of a keyel1
- JsElem to be associated to the key1key2
- name of a keyel2
- JsElem to be associated to the key2key3
- name of a keyel3
- JsElem to be associated to the key3key4
- name of a keyel4
- JsElem to be associated to the key4key5
- name of a keyel5
- JsElem to be associated to the key5key6
- name of a keyel6
- JsElem to be associated to the key6UnsupportedOperationException
- if an elem is a mutable Jsonstatic JsObj of(Map<String,JsElem> map)
map
- the map of JsElemUnsupportedOperationException
- if an elem of the map is a mutable Jsonstatic TryObj parse(String str)
str
- the string to be parsedTryObj
computationstatic TryObj parse(String str, ParseOptions options)
str
- string to be parsedoptions
- a Options with the filters and maps that will be applied during the parsingTryObj
computationJsObj tail(String key)
key
- the given key, which associated pair will be excludedUnsupportedOperationException
- if this json object is emptyJsObj intersection(JsObj that, JsArray.TYPE ARRAY_AS)
that
- the other objARRAY_AS
- option to define if arrays are considered SETS, LISTS OR MULTISETJsObj intersection_(JsObj that, JsArray.TYPE ARRAY_AS)
that
- the other objectARRAY_AS
- option to define if arrays are considered SETS, LISTS OR MULTISETJsObj union(JsObj that)
that
- the other objectJsObj union_(JsObj that, JsArray.TYPE ARRAY_AS)
that
- the other objectARRAY_AS
- option to define if arrays are considered SETS, LISTS OR MULTISETstatic JsObj of(JsPair pair, JsPair... others)
pair
- a pairothers
- more optional pairsUnsupportedOperationException
- if an elem of a pair is mutablestatic JsObj _of_(JsPair pair, JsPair... others)
pair
- a pairothers
- more optional pairsUnsupportedOperationException
- if an elem of a pair is immutableCopyright © 2019. All rights reserved.