public class JsonMap extends LiteMap<String,Object> implements Versionable<Integer>
LiteMap
that preserves the order of elements
and adds support for POF serialization without fidelity loss in order to
support JSON pass-through.Modifier and Type | Class and Description |
---|---|
static class |
JsonMap.Serializer
POF serializer for JsonMap.
|
com.oracle.coherence.common.collections.InflatableMap.EntryIterator<K,V>, com.oracle.coherence.common.collections.InflatableMap.EntrySet
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
JsonMap()
Construct a JsonMap.
|
JsonMap(Map<String,?> map)
Construct a JsonMap with the same mappings as the given map.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getVersionIndicator()
Get the version indicator for this object.
|
void |
incrementVersion()
Update the version to the next logical version indicator.
|
protected Map<String,Object> |
instantiateMap()
(Factory pattern) Instantiate a Map object to store entries in once
the "lite" threshold has been exceeded.
|
Object |
put(String key,
Object value)
Associates the specified value with the specified key in this map.
|
readExternal, writeExternal
checkShrinkFromOther, clear, clone, containsKey, ensureRuntimeException, entrySet, get, instantiateEntry, instantiateEntrySet, isEmpty, readExternal, remove, size, writeExternal
containsValue, equals, hashCode, keySet, putAll, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
isVersioningEnabled
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected Map<String,Object> instantiateMap()
com.oracle.coherence.common.collections.InflatableMap
public Object put(String key, Object value)
com.oracle.coherence.common.collections.InflatableMap
put
in interface Map<String,Object>
put
in class com.oracle.coherence.common.collections.InflatableMap<String,Object>
key
- key with which the specified value is to be associatedvalue
- value to be associated with the specified keynull
if there was no mapping for keypublic Integer getVersionIndicator()
Versionable
getVersionIndicator
in interface Versionable<Integer>
public void incrementVersion()
Versionable
incrementVersion
in interface Versionable<Integer>