Package com.tangosol.util
Class NullImplementation.NullMap
java.lang.Object
java.util.AbstractMap
com.tangosol.util.NullImplementation.NullMap
- All Implemented Interfaces:
 ExternalizableLite,PortableObject,Serializable,Map
- Direct Known Subclasses:
 NullImplementation.NullObservableMap
- Enclosing class:
 NullImplementation
public static class NullImplementation.NullMap
extends AbstractMap
implements Map, Serializable, ExternalizableLite, PortableObject
A Map that contains nothing and does nothing.
- See Also:
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V>  - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleaninthashCode()keySet()voidvoidRestore the contents of a user type instance by reading its state using the specified PofReader object.voidRestore the contents of this object by loading the object's state from the passed DataInput object.intsize()values()voidwriteExternal(PofWriter out) Save the contents of a POF user type instance by writing its state using the specified PofWriter object.voidwriteExternal(DataOutput out) Save the contents of this object by storing the object's state into the passed DataOutput object.Methods inherited from class java.util.AbstractMap
clear, clone, isEmpty, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, isEmpty, merge, putIfAbsent, remove, replace, replace, replaceAll 
- 
Field Details
- 
INSTANCE
Since the Map contains no information, only one ever has to exist. 
 - 
 - 
Constructor Details
- 
NullMap
public NullMap()Default constructor (for ExternalizableLite and PortableObject). 
 - 
 - 
Method Details
- 
size
public int size()- Specified by:
 sizein interfaceMap- Overrides:
 sizein classAbstractMap
 - 
get
- Specified by:
 getin interfaceMap- Overrides:
 getin classAbstractMap
 - 
put
- Specified by:
 putin interfaceMap- Overrides:
 putin classAbstractMap
 - 
putAll
- Specified by:
 putAllin interfaceMap- Overrides:
 putAllin classAbstractMap
 - 
remove
- Specified by:
 removein interfaceMap- Overrides:
 removein classAbstractMap
 - 
containsKey
- Specified by:
 containsKeyin interfaceMap- Overrides:
 containsKeyin classAbstractMap
 - 
containsValue
- Specified by:
 containsValuein interfaceMap- Overrides:
 containsValuein classAbstractMap
 - 
entrySet
- Specified by:
 entrySetin interfaceMap- Specified by:
 entrySetin classAbstractMap
 - 
keySet
- Specified by:
 keySetin interfaceMap- Overrides:
 keySetin classAbstractMap
 - 
values
- Specified by:
 valuesin interfaceMap- Overrides:
 valuesin classAbstractMap
 - 
equals
- Specified by:
 equalsin interfaceMap- Overrides:
 equalsin classAbstractMap
 - 
hashCode
public int hashCode()- Specified by:
 hashCodein interfaceMap- Overrides:
 hashCodein classAbstractMap
 - 
readExternal
Restore the contents of this object by loading the object's state from the passed DataInput object.- Specified by:
 readExternalin interfaceExternalizableLite- Parameters:
 in- the DataInput stream to read data from in order to restore the state of this object- Throws:
 IOException- if an I/O exception occurs
 - 
writeExternal
Save the contents of this object by storing the object's state into the passed DataOutput object.- Specified by:
 writeExternalin interfaceExternalizableLite- Parameters:
 out- the DataOutput stream to write the state of this object to- Throws:
 IOException- if an I/O exception occurs
 - 
readExternal
Restore the contents of a user type instance by reading its state using the specified PofReader object.- Specified by:
 readExternalin interfacePortableObject- Parameters:
 in- the PofReader from which to read the object's state- Throws:
 IOException- if an I/O error occurs
 - 
writeExternal
Save the contents of a POF user type instance by writing its state using the specified PofWriter object.- Specified by:
 writeExternalin interfacePortableObject- Parameters:
 out- the PofWriter to which to write the object's state- Throws:
 IOException- if an I/O error occurs
 
 -