Package | Description |
---|---|
jsonvalues |
json-values is a one-package and zero-dependency library to work with jsons in a declarative and functional way.
|
Modifier and Type | Method and Description |
---|---|
static JsArray.TYPE |
JsArray.TYPE.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsArray.TYPE[] |
JsArray.TYPE.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
JsArray.equals(JsArray array,
JsArray.TYPE ARRAY_AS)
Returns true if this array is equal to the given as a parameter.
|
boolean |
JsObj.equals(JsObj that,
JsArray.TYPE ARRAY_AS)
return true if this obj is equal to the given as a parameter.
|
default boolean |
Json.equals(JsValue elem,
JsArray.TYPE ARRAY_AS) |
JsArray |
JsArray.intersection(JsArray that,
JsArray.TYPE ARRAY_AS)
this.intersection(that, SET) returns an array with the elements that exist in both this
and that . |
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.intersectionAll(JsObj that,
JsArray.TYPE ARRAY_AS)
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. |
JsArray |
JsArray.union(JsArray that,
JsArray.TYPE ARRAY_AS)
this.union(that, SET) returns this plus those elements from that that
don't exist in this . |
JsObj |
JsObj.unionAll(JsObj that,
JsArray.TYPE ARRAY_AS)
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. |
Copyright © 2022. All rights reserved.