Package de.xima.fc.common.collection
Class CrudMapAdapter.SetLike.Immutable<Value>
- java.lang.Object
-
- de.xima.fc.common.collection.CrudMapAdapter.SetLike<Value>
-
- de.xima.fc.common.collection.CrudMapAdapter.SetLike.Immutable<Value>
-
- Type Parameters:
Value
- Type of the values in the map.
- All Implemented Interfaces:
CrudMapAdapter<Value,Unit>
- Enclosing class:
- CrudMapAdapter.SetLike<Value>
public abstract static class CrudMapAdapter.SetLike.Immutable<Value> extends CrudMapAdapter.SetLike<Value>
ACrudMapAdapter.SetLike
for an immutable set. It implements all mutating methods by throwing anUnsupportedOperationException
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.xima.fc.common.collection.CrudMapAdapter.SetLike
CrudMapAdapter.SetLike.Immutable<Value>
-
Nested classes/interfaces inherited from interface de.xima.fc.common.collection.CrudMapAdapter
CrudMapAdapter.SetLike<Value>
-
-
Constructor Summary
Constructors Constructor Description Immutable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Value value)
Adds a given value to the set.void
delete(Value value)
Removes the mapping for the given key.-
Methods inherited from class de.xima.fc.common.collection.CrudMapAdapter.SetLike
contains, get, set
-
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, isEmpty
-
-
-
-
Method Detail
-
add
public final void add(Value value)
Description copied from class:CrudMapAdapter.SetLike
Adds a given value to the set.- Specified by:
add
in classCrudMapAdapter.SetLike<Value>
- Parameters:
value
- Value to add.
-
delete
public void delete(Value value)
Description copied from interface:CrudMapAdapter
Removes the mapping for the given key.- Parameters:
value
- Key to disassociate with any values.
-
-