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
  • Constructor Details

    • Immutable

      public Immutable()
  • Method Details

    • delete

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