Skip navigation links 
 
com.tangosol.util
Class NullImplementation.NullMap
java.lang.Object
   java.util.AbstractMap
java.util.AbstractMap
       com.tangosol.util.NullImplementation.NullMap
com.tangosol.util.NullImplementation.NullMap
- All Implemented Interfaces:
- ExternalizableLite, PortableObject, java.io.Serializable, java.util.Map
- Direct Known Subclasses:
- NullImplementation.NullObservableMap
- Enclosing class:
- NullImplementation
- 
public static class NullImplementation.NullMap
 
- extends java.util.AbstractMap
- implements java.util.Map, java.io.Serializable, ExternalizableLite, PortableObject
A Map that contains nothing and does nothing.
 
 
| Nested classes/interfaces inherited from class java.util.AbstractMap | 
| java.util.AbstractMap.SimpleEntry, java.util.AbstractMap.SimpleImmutableEntry | 
  
| Nested classes/interfaces inherited from interface java.util.Map | 
| java.util.Map.Entry | 
  
 
| Field Summary | 
| static java.util.Map | INSTANCESince the Map contains no information, only one ever has to exist.
 | 
  
 
  
 
| Method Summary | 
|  boolean | containsKey(java.lang.Object key)
 | 
|  boolean | containsValue(java.lang.Object value)
 | 
|  java.util.Set | entrySet()
 | 
|  boolean | equals(java.lang.Object o)
 | 
|  java.lang.Object | get(java.lang.Object key)
 | 
|  int | hashCode()
 | 
|  java.util.Set | keySet()
 | 
|  java.lang.Object | put(java.lang.Object key, java.lang.Object value)
 | 
|  void | putAll(java.util.Map map)
 | 
|  void | readExternal(java.io.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.
 | 
|  java.lang.Object | remove(java.lang.Object key)
 | 
|  int | size()
 | 
|  java.util.Collection | values()
 | 
|  void | writeExternal(java.io.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.
 | 
 
| Methods inherited from class java.util.AbstractMap | 
| clear, clone, isEmpty, toString | 
 
| Methods inherited from interface java.util.Map | 
| clear, isEmpty | 
 
 
INSTANCE
public static final java.util.Map INSTANCE
- Since the Map contains no information, only one ever has to exist.
NullImplementation.NullMap
public NullImplementation.NullMap()
- Default constructor (for ExternalizableLite and PortableObject).
size
public int size()
- 
- Specified by:
- sizein interface- java.util.Map
- Overrides:
- sizein class- java.util.AbstractMap
 
get
public java.lang.Object get(java.lang.Object key)
- 
- Specified by:
- getin interface- java.util.Map
- Overrides:
- getin class- java.util.AbstractMap
 
put
public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
- 
- Specified by:
- putin interface- java.util.Map
- Overrides:
- putin class- java.util.AbstractMap
 
putAll
public void putAll(java.util.Map map)
- 
- Specified by:
- putAllin interface- java.util.Map
- Overrides:
- putAllin class- java.util.AbstractMap
 
remove
public java.lang.Object remove(java.lang.Object key)
- 
- Specified by:
- removein interface- java.util.Map
- Overrides:
- removein class- java.util.AbstractMap
 
containsKey
public boolean containsKey(java.lang.Object key)
- 
- Specified by:
- containsKeyin interface- java.util.Map
- Overrides:
- containsKeyin class- java.util.AbstractMap
 
containsValue
public boolean containsValue(java.lang.Object value)
- 
- Specified by:
- containsValuein interface- java.util.Map
- Overrides:
- containsValuein class- java.util.AbstractMap
 
entrySet
public java.util.Set entrySet()
- 
- Specified by:
- entrySetin interface- java.util.Map
- Specified by:
- entrySetin class- java.util.AbstractMap
 
keySet
public java.util.Set keySet()
- 
- Specified by:
- keySetin interface- java.util.Map
- Overrides:
- keySetin class- java.util.AbstractMap
 
values
public java.util.Collection values()
- 
- Specified by:
- valuesin interface- java.util.Map
- Overrides:
- valuesin class- java.util.AbstractMap
 
equals
public boolean equals(java.lang.Object o)
- 
- Specified by:
- equalsin interface- java.util.Map
- Overrides:
- equalsin class- java.util.AbstractMap
 
hashCode
public int hashCode()
- 
- Specified by:
- hashCodein interface- java.util.Map
- Overrides:
- hashCodein class- java.util.AbstractMap
 
readExternal
public void readExternal(java.io.DataInput in)
                  throws java.io.IOException
- Restore the contents of this object by loading the object's state from the passed DataInput object.
- 
- Specified by:
- readExternalin interface- ExternalizableLite
 
- 
- Parameters:
- in- the DataInput stream to read data from in order to restore the state of this object
- Throws:
- java.io.IOException- if an I/O exception occurs
- java.io.NotActiveException- if the object is not in its initial state, and therefore cannot be deserialized into
 
writeExternal
public void writeExternal(java.io.DataOutput out)
                   throws java.io.IOException
- Save the contents of this object by storing the object's state into the passed DataOutput object.
- 
- Specified by:
- writeExternalin interface- ExternalizableLite
 
- 
- Parameters:
- out- the DataOutput stream to write the state of this object to
- Throws:
- java.io.IOException- if an I/O exception occurs
 
readExternal
public void readExternal(PofReader in)
                  throws java.io.IOException
- Restore the contents of a user type instance by reading its state using the specified PofReader object.
- 
- Specified by:
- readExternalin interface- PortableObject
 
- 
- Parameters:
- in- the PofReader from which to read the object's state
- Throws:
- java.io.IOException- if an I/O error occurs
 
writeExternal
public void writeExternal(PofWriter out)
                   throws java.io.IOException
- Save the contents of a POF user type instance by writing its state using the specified PofWriter object.
- 
- Specified by:
- writeExternalin interface- PortableObject
 
- 
- Parameters:
- out- the PofWriter to which to write the object's state
- Throws:
- java.io.IOException- if an I/O error occurs
 
Skip navigation links 
 
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.