public final class ImmutableStructure extends Object
ImmutableStructure represents a potentially nested object type which
is used to represent
structured data.
The ImmutableStructure is a Structure implementation which is threadsafe, and
whose attributes can
not be modified after instantiation. All references are clones.| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Value> |
attributes |
| Constructor and Description |
|---|
ImmutableStructure()
create an immutable structure with the empty attributes.
|
ImmutableStructure(Map<String,Value> attributes)
create immutable structure with the given attributes.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Value> |
asMap()
Get all values.
|
Map<String,Object> |
asObjectMap()
Get all values as their underlying primitives types.
|
Value |
getValue(String key)
Get the value indexed by key.
|
Set<String> |
keySet()
Get all keys.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertValue, mapToStructure, mergepublic ImmutableStructure()
public Set<String> keySet()
Structurepublic Value getValue(String key)
Structurekey - String the key.public Map<String,Object> asObjectMap()
asObjectMap in interface StructureCopyright © 2023. All rights reserved.