public static class NullImplementation.NullMap extends AbstractMap implements Map, Serializable, ExternalizableLite, PortableObject
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static Map |
INSTANCE
Since the Map contains no information, only one ever has to exist.
|
| Constructor and Description |
|---|
NullMap()
Default constructor (for ExternalizableLite and PortableObject).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set |
entrySet() |
boolean |
equals(Object o) |
Object |
get(Object key) |
int |
hashCode() |
Set |
keySet() |
Object |
put(Object key, Object value) |
void |
putAll(Map map) |
void |
readExternal(DataInput in)
Restore the contents of this object by loading the object's state from the passed DataInput object.
|
void |
readExternal(PofReader in)
Restore the contents of a user type instance by reading its state using the specified PofReader object.
|
Object |
remove(Object key) |
int |
size() |
Collection |
values() |
void |
writeExternal(DataOutput out)
Save the contents of this object by storing the object's state into the passed DataOutput object.
|
void |
writeExternal(PofWriter out)
Save the contents of a POF user type instance by writing its state using the specified PofWriter object.
|
clear, clone, isEmpty, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, isEmpty, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static final Map INSTANCE
public NullMap()
public int size()
size in interface Mapsize in class AbstractMappublic Object get(Object key)
get in interface Mapget in class AbstractMappublic Object put(Object key, Object value)
put in interface Mapput in class AbstractMappublic void putAll(Map map)
putAll in interface MapputAll in class AbstractMappublic Object remove(Object key)
remove in interface Mapremove in class AbstractMappublic boolean containsKey(Object key)
containsKey in interface MapcontainsKey in class AbstractMappublic boolean containsValue(Object value)
containsValue in interface MapcontainsValue in class AbstractMappublic Set entrySet()
entrySet in interface MapentrySet in class AbstractMappublic Set keySet()
keySet in interface MapkeySet in class AbstractMappublic Collection values()
values in interface Mapvalues in class AbstractMappublic boolean equals(Object o)
equals in interface Mapequals in class AbstractMappublic int hashCode()
hashCode in interface MaphashCode in class AbstractMappublic void readExternal(DataInput in) throws IOException
readExternal in interface ExternalizableLitein - the DataInput stream to read data from in order to restore the state of this objectIOException - if an I/O exception occursNotActiveException - if the object is not in its initial state, and therefore cannot be deserialized intopublic void writeExternal(DataOutput out) throws IOException
writeExternal in interface ExternalizableLiteout - the DataOutput stream to write the state of this object toIOException - if an I/O exception occurspublic void readExternal(PofReader in) throws IOException
readExternal in interface PortableObjectin - the PofReader from which to read the object's stateIOException - if an I/O error occurspublic void writeExternal(PofWriter out) throws IOException
writeExternal in interface PortableObjectout - the PofWriter to which to write the object's stateIOException - if an I/O error occurs