Package de.xima.fc.common.collection
Class CrudMapAdapter.Immutable<Key,Value>
- java.lang.Object
 - 
- de.xima.fc.common.collection.CrudMapAdapter.Immutable<Key,Value>
 
 
- 
- Type Parameters:
 Key- Type of the keys in the map.Value- Type of the values in the map.
- All Implemented Interfaces:
 CrudMapAdapter<Key,Value>
- Enclosing interface:
 - CrudMapAdapter<Key,Value>
 
public abstract static class CrudMapAdapter.Immutable<Key,Value> extends Object implements CrudMapAdapter<Key,Value>
ACrudMapAdapterfor an immutable map. It implements all mutating methods by throwing anUnsupportedOperationException. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface de.xima.fc.common.collection.CrudMapAdapter
CrudMapAdapter.Immutable<Key,Value>, CrudMapAdapter.SetLike<Value> 
 - 
 
- 
Constructor Summary
Constructors Constructor Description Immutable() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(Key key)Removes the mapping for the given key.voidset(Key key, Value value)Associates a value with the given key.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface de.xima.fc.common.collection.CrudMapAdapter
computeSize, enumerateCandidateKeys, get, isEmpty 
 - 
 
 - 
 
- 
- 
Method Detail
- 
delete
public final void delete(Key key)
Description copied from interface:CrudMapAdapterRemoves the mapping for the given key.- Specified by:
 deletein interfaceCrudMapAdapter<Key,Value>- Parameters:
 key- Key to disassociate with any values.
 
- 
set
public final void set(Key key, Value value)
Description copied from interface:CrudMapAdapterAssociates a value with the given key.- Specified by:
 setin interfaceCrudMapAdapter<Key,Value>- Parameters:
 key- Key to associate with a different value.value- Value to associate with the key, nevernull.
 
 - 
 
 -