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>
ACrudMapAdapter
for 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 void
delete(Key key)
Removes the mapping for the given key.void
set(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:CrudMapAdapter
Removes the mapping for the given key.- Specified by:
delete
in interfaceCrudMapAdapter<Key,Value>
- Parameters:
key
- Key to disassociate with any values.
-
set
public final void set(Key key, Value value)
Description copied from interface:CrudMapAdapter
Associates a value with the given key.- Specified by:
set
in interfaceCrudMapAdapter<Key,Value>
- Parameters:
key
- Key to associate with a different value.value
- Value to associate with the key, nevernull
.
-
-