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.EntrySetAbstractMap.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, writeExternalcheckShrinkFromOther, clear, clone, containsKey, ensureRuntimeException, entrySet, get, instantiateEntry, instantiateEntrySet, isEmpty, readExternal, remove, size, writeExternalcontainsValue, equals, hashCode, keySet, putAll, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitisVersioningEnabledcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Map<String,Object> instantiateMap()
com.oracle.coherence.common.collections.InflatableMappublic Object put(String key, Object value)
com.oracle.coherence.common.collections.InflatableMapput 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()
VersionablegetVersionIndicator in interface Versionable<Integer>public void incrementVersion()
VersionableincrementVersion in interface Versionable<Integer>