com.taco.data
Class AbstractNoReturnMap
java.lang.Object
java.util.AbstractMap
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 classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry |
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 |
_cachedNoReturnEntrySet
protected transient java.util.Set _cachedNoReturnEntrySet
- The lazily computed and cached no-return entry set.
AbstractNoReturnMap
public AbstractNoReturnMap()
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