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.
|
LiteMap.EntryIterator<K,V>, LiteMap.EntrySet
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
JsonMap()
Construct a JsonMap.
|
JsonMap(Map<? extends 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.
|
checkShrinkFromOther, clear, clone, containsKey, entrySet, get, instantiateEntry, instantiateEntrySet, isEmpty, put, readExternal, readExternal, remove, size, writeExternal, 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()
LiteMap
instantiateMap
in class LiteMap<String,Object>
public Integer getVersionIndicator()
Versionable
getVersionIndicator
in interface Versionable<Integer>
public void incrementVersion()
Versionable
incrementVersion
in interface Versionable<Integer>