Skip navigation links
com.tangosol.util
Class NullImplementation.NullMap
java.lang.Object
java.util.AbstractMap
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 |
INSTANCE
Since 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:
size
in interface java.util.Map
- Overrides:
size
in class java.util.AbstractMap
get
public java.lang.Object get(java.lang.Object key)
-
- Specified by:
get
in interface java.util.Map
- Overrides:
get
in class java.util.AbstractMap
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
-
- Specified by:
put
in interface java.util.Map
- Overrides:
put
in class java.util.AbstractMap
putAll
public void putAll(java.util.Map map)
-
- Specified by:
putAll
in interface java.util.Map
- Overrides:
putAll
in class java.util.AbstractMap
remove
public java.lang.Object remove(java.lang.Object key)
-
- Specified by:
remove
in interface java.util.Map
- Overrides:
remove
in class java.util.AbstractMap
containsKey
public boolean containsKey(java.lang.Object key)
-
- Specified by:
containsKey
in interface java.util.Map
- Overrides:
containsKey
in class java.util.AbstractMap
containsValue
public boolean containsValue(java.lang.Object value)
-
- Specified by:
containsValue
in interface java.util.Map
- Overrides:
containsValue
in class java.util.AbstractMap
entrySet
public java.util.Set entrySet()
-
- Specified by:
entrySet
in interface java.util.Map
- Specified by:
entrySet
in class java.util.AbstractMap
keySet
public java.util.Set keySet()
-
- Specified by:
keySet
in interface java.util.Map
- Overrides:
keySet
in class java.util.AbstractMap
values
public java.util.Collection values()
-
- Specified by:
values
in interface java.util.Map
- Overrides:
values
in class java.util.AbstractMap
equals
public boolean equals(java.lang.Object o)
-
- Specified by:
equals
in interface java.util.Map
- Overrides:
equals
in class java.util.AbstractMap
hashCode
public int hashCode()
-
- Specified by:
hashCode
in interface java.util.Map
- Overrides:
hashCode
in 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:
readExternal
in 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:
writeExternal
in 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:
readExternal
in 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:
writeExternal
in 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.