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>
A
CrudMapAdapter for an immutable map. It implements all mutating methods by throwing an
UnsupportedOperationException.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
Nested Class Summary
Nested classes/interfaces inherited from interface CrudMapAdapter
CrudMapAdapter.Immutable<Key,Value>, CrudMapAdapter.SetLike<Value> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CrudMapAdapter
computeSize, enumerateCandidateKeys, get, isEmpty
-
Constructor Details
-
Immutable
public Immutable()
-
-
Method Details
-
delete
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
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.
-