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>,Serializable
- Enclosing class:
- CrudMapAdapter.SetLike<Value>
public abstract static class CrudMapAdapter.SetLike.Immutable<Value> extends CrudMapAdapter.SetLike<Value> implements Serializable
ACrudMapAdapter.SetLikefor an immutable set. It implements all mutating methods by throwing anUnsupportedOperationException.- See Also:
- Serialized Form
-
-
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 voidadd(Value value)Adds a given value to the set.voiddelete(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.SetLikeAdds a given value to the set.- Specified by:
addin classCrudMapAdapter.SetLike<Value>- Parameters:
value- Value to add.
-
delete
public void delete(Value value)
Description copied from interface:CrudMapAdapterRemoves the mapping for the given key.- Specified by:
deletein interfaceCrudMapAdapter<Value,Unit>- Parameters:
value- Key to disassociate with any values.
-
-