com.taco.data
Class AbstractNoReturnMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by com.taco.data.AbstractNoReturnMap
All Implemented Interfaces:
INoReturnMap, java.util.Map
Direct Known Subclasses:
NoReturnMapAdapter, ObservableMap, WrappedKeyValueMap

public abstract class AbstractNoReturnMap
extends java.util.AbstractMap
implements INoReturnMap

An abstract implementation of INoReturnMap to make concrete implementations of INoReturnMap easier to write. Only entrySet() needs to be implemented.


Nested Class Summary
protected static class AbstractNoReturnMap.NoReturnEntry
          An implementation of INoReturnEntry.
protected static class AbstractNoReturnMap.NoReturnEntrySet
          The entry set returned by entrySetNoReturn(), which wraps the ordinary entry set.
protected static class 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.Set _cachedNoReturnEntrySet
          The lazily computed and cached no-return entry set.
 
Constructor Summary
AbstractNoReturnMap()
           
 
Method Summary
 java.util.Set entrySetNoReturn()
          Wrap the return value of entrySet() to make it an instance of NoReturnEntrySet, which contains instances of INoReturnEntry.
 void putAll(java.util.Map source)
          Add mappings of source to this instance using putNoReturn().
 void putNoReturn(java.lang.Object key, java.lang.Object value)
          This implementation simply calls put() -- there is no speed advantage to using this method.
 void removeNoReturn(java.lang.Object key)
          This implementation simply calls remove() -- there is no speed advantage to using this method.
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, remove, size, values
 

Field Detail

_cachedNoReturnEntrySet

protected transient java.util.Set _cachedNoReturnEntrySet
The lazily computed and cached no-return entry set.

Constructor Detail

AbstractNoReturnMap

public AbstractNoReturnMap()
Method Detail

putNoReturn

public void putNoReturn(java.lang.Object key,
                        java.lang.Object value)
This implementation simply calls put() -- there is no speed advantage to using this method.

Specified by:
putNoReturn in interface INoReturnMap

removeNoReturn

public void removeNoReturn(java.lang.Object key)
This implementation simply calls remove() -- there is no speed advantage to using this method.

Specified by:
removeNoReturn in interface INoReturnMap

entrySetNoReturn

public java.util.Set entrySetNoReturn()
Wrap the return value of entrySet() to make it an instance of NoReturnEntrySet, which contains instances of INoReturnEntry.

Specified by:
entrySetNoReturn in interface INoReturnMap

putAll

public void putAll(java.util.Map source)
Add mappings of source to this instance using putNoReturn().

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