Represents a JSON Object
no subtypes hierarchy
Initializer |
Object({<String->Value>*} values = ...) Parameters:
|
Attributes | |
hash | Source Codeshared actual Integer hash The hash value of the value, which allows the value to be an element of a hash-based set or key of a hash-based map. Implementations must respect the constraint that:
Therefore, a class which refines In general, Note that when executing on a Java Virtual Machine, the
64-bit |
pretty | Source Codeshared String pretty Returns a pretty-printed serialised JSON representation |
size | Source Codeshared actual Integer size The number of elements returned by the Refines Iterable.size |
string | Source Codeshared actual String string Returns a serialised JSON representation |
Inherited Attributes |
Attributes inherited from: LangObject |
Attributes inherited from: Collection<Element> |
Attributes inherited from: Correspondence<Key,Item> |
Attributes inherited from: Iterable<Element,Absent> |
Attributes inherited from: Map<Key,Item> |
Methods | |
clear | Source Codeshared actual void clear() Remove every entry from this map, leaving an empty map with no entries. Refines MapMutator.clear |
clone | Source Codeshared actual Object clone() A shallow copy of this collection, that is, a collection with identical elements which does not change if this collection changes. If this collection is immutable, it is acceptable to return a reference to this collection. If this collection is mutable, a newly instantiated collection must be returned. |
defines | Source Codeshared actual Boolean defines(LangObject key) Determines if there is a value defined for the given key. |
equals | Source Codeshared actual Boolean equals(LangObject that) Determine if two values are equal. Implementations should respect the constraints that:
Furthermore it is recommended that implementations
ensure that if A class which explicitly refines Note that an implementation of |
get | Source Codeshared actual Value get(LangObject key) Returns the value defined for the given key, or |
getArray | Source Codeshared Array getArray(String key) Returns an Throws
|
getArrayOrNull | Source Codeshared Array? getArrayOrNull(String key) Returns an Throws |
getBoolean | Source Codeshared Boolean getBoolean(String key) Returns an Throws
|
getBooleanOrNull | Source Codeshared Boolean? getBooleanOrNull(String key) Returns an Throws
|
getFloat | Source Codeshared Float getFloat(String key) Returns an Throws
|
getFloatOrNull | Source Codeshared Float? getFloatOrNull(String key) Returns an Throws |
getInteger | Source Codeshared Integer getInteger(String key) Returns an Throws
|
getIntegerOrNull | Source Codeshared Integer? getIntegerOrNull(String key) Returns an Throws
|
getObject | Source Codeshared Object getObject(String key) Returns an Throws
|
getObjectOrNull | Source Codeshared Object? getObjectOrNull(String key) Returns an Throws
|
getString | Source Codeshared String getString(String key) Returns an Throws
|
getStringOrNull | Source Codeshared String? getStringOrNull(String key) Returns an Throws
|
iterator | Source Codeshared actual Iterator<String->Value> iterator() An iterator for the elements belonging to this stream. Refines Iterable.iterator |
put | Source Codeshared actual Value put(String key, Value item) Add an entry to this map, overwriting any existing
entry for the given |
putAll | Source Codeshared actual void putAll({<String->Value>*} entries) Add the given Refines MapMutator.putAll |
remove | Source Codeshared actual Value remove(String key) Remove the entry associated with the given |
Inherited Methods |
Methods inherited from: LangObject |
Methods inherited from: Category<Element> |
Methods inherited from: Collection<Element> |
Methods inherited from: Correspondence<Key,Item> |
Methods inherited from: Iterable<Element,Absent> any() , by() , chain() , collect() , contains() , count() , defaultNullElements() , each() , every() , filter() , find() , findLast() , flatMap() , fold() , follow() , frequencies() , getFromFirst() , group() , indexes() , interpose() , iterator() , locate() , locateLast() , locations() , longerThan() , map() , max() , narrow() , partition() , product() , reduce() , repeat() , scan() , select() , sequence() , shorterThan() , skip() , skipWhile() , sort() , spread() , summarize() , tabulate() , take() , takeWhile() |
Methods inherited from: Map<Key,Item> |
Methods inherited from: MapMutator<Key,Item> |
Methods inherited from: MutableMap<Key,Item> |