com.taco.data
Class NoReturnMapAdapter

java.lang.Object
  extended by java.util.AbstractMap
      extended by com.taco.data.AbstractNoReturnMap
          extended by com.taco.data.NoReturnMapAdapter
All Implemented Interfaces:
INoReturnMap, java.io.Serializable, java.util.Map

public class NoReturnMapAdapter
extends AbstractNoReturnMap
implements java.io.Serializable

An adapter from a Map to a INoReturnMap.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.taco.data.AbstractNoReturnMap
AbstractNoReturnMap.NoReturnEntry, AbstractNoReturnMap.NoReturnEntrySet, AbstractNoReturnMap.NoReturnIterator
 
Nested classes/interfaces inherited from interface com.taco.data.INoReturnMap
INoReturnMap.INoReturnEntry
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry
 
Field Summary
protected  java.util.Map _decoratee
          The map that this instance decorates.
 
Fields inherited from class com.taco.data.AbstractNoReturnMap
_cachedNoReturnEntrySet
 
Constructor Summary
NoReturnMapAdapter()
          Create an instance that adapts a new instance of HashMap.
NoReturnMapAdapter(int capacity)
          Create an instance that adapts a new instance of HashMap with the argument capacity.
NoReturnMapAdapter(java.util.Map decoratee)
          Create an instance that adapts the argument map.
 
Method Summary
 void clear()
          Overridden for efficiency.
 java.util.Set entrySet()
          Return the entry set of the decorated map.
 java.lang.Object get(java.lang.Object key)
          Overridden for efficiency.
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
          Overridden for efficiency.
 void putAll(java.util.Map map)
          Overridden for efficiency.
 void putNoReturn(java.lang.Object key, java.lang.Object value)
          Overridden for efficiency.
 int size()
          Overridden for efficiency.
 
Methods inherited from class com.taco.data.AbstractNoReturnMap
entrySetNoReturn, removeNoReturn
 
Methods inherited from class java.util.AbstractMap
clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, remove, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, containsValue, equals, hashCode, isEmpty, keySet, remove, values
 

Field Detail

_decoratee

protected final java.util.Map _decoratee
The map that this instance decorates.

Constructor Detail

NoReturnMapAdapter

public NoReturnMapAdapter()
Create an instance that adapts a new instance of HashMap.


NoReturnMapAdapter

public NoReturnMapAdapter(int capacity)
Create an instance that adapts a new instance of HashMap with the argument capacity.


NoReturnMapAdapter

public NoReturnMapAdapter(java.util.Map decoratee)
Create an instance that adapts the argument map. The map is not copied.

Method Detail

get

public java.lang.Object get(java.lang.Object key)
Overridden for efficiency. This implementation simply calls the same method of decorated map.

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)
Overridden for efficiency. This implementation simply calls the same method of decorated map.

Specified by:
put in interface java.util.Map
Overrides:
put in class java.util.AbstractMap

putNoReturn

public void putNoReturn(java.lang.Object key,
                        java.lang.Object value)
Overridden for efficiency. This implementation simply calls the put() method of decorated map.

Specified by:
putNoReturn in interface INoReturnMap
Overrides:
putNoReturn in class AbstractNoReturnMap

putAll

public void putAll(java.util.Map map)
Overridden for efficiency. This implementation simply calls the same method of decorated map.

Specified by:
putAll in interface INoReturnMap
Specified by:
putAll in interface java.util.Map
Overrides:
putAll in class AbstractNoReturnMap

size

public int size()
Overridden for efficiency. This implementation simply calls the same method of decorated map.

Specified by:
size in interface java.util.Map
Overrides:
size in class java.util.AbstractMap

clear

public void clear()
Overridden for efficiency. This implementation simply calls the same method of decorated map.

Specified by:
clear in interface java.util.Map
Overrides:
clear in class java.util.AbstractMap

entrySet

public java.util.Set entrySet()
Return the entry set of the decorated map.

Specified by:
entrySet in interface java.util.Map
Specified by:
entrySet in class java.util.AbstractMap