Class ContainerMap<K,V>

All Implemented Interfaces:
Map<K,V>, IContainerMap<K,V>, IContainer<Map.Entry<K,V>>, INotifier, INotifier.INotifier2

public class ContainerMap<K,V> extends AbstractDelegator<Map.Entry<K,V>> implements IContainerMap<K,V>
A default implementation of a container map.
Author:
Eike Stepper
  • Constructor Details

    • ContainerMap

      public ContainerMap(Map<K,V> delegate)
  • Method Details

    • getDelegate

      public Map<K,V> getDelegate()
      Specified by:
      getDelegate in interface IContainerMap<K,V>
    • clear

      public void clear()
      Specified by:
      clear in interface Map<K,V>
      Category
      WRITE
    • put

      public V put(K key, V value)
      Specified by:
      put in interface Map<K,V>
      Category
      WRITE
    • putAll

      public void putAll(Map<? extends K,? extends V> t)
      Specified by:
      putAll in interface Map<K,V>
      Category
      WRITE
    • remove

      public V remove(Object key)
      Specified by:
      remove in interface Map<K,V>
      Category
      WRITE
    • containsKey

      public boolean containsKey(Object key)
      Specified by:
      containsKey in interface Map<K,V>
      Category
      READ
    • containsValue

      public boolean containsValue(Object value)
      Specified by:
      containsValue in interface Map<K,V>
      Category
      READ
    • get

      public V get(Object key)
      Specified by:
      get in interface Map<K,V>
      Category
      READ
    • size

      public int size()
      Specified by:
      size in interface Map<K,V>
      Category
      READ
    • getElements

      public Map.Entry<K,V>[] getElements()
      Specified by:
      getElements in interface IContainer<K>
      Category
      READ
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface IContainer<K>
      Specified by:
      isEmpty in interface Map<K,V>
      Category
      READ
    • entrySet

      public Set<Map.Entry<K,V>> entrySet()
      Specified by:
      entrySet in interface Map<K,V>
      Category
      READ
    • keySet

      public Set<K> keySet()
      Specified by:
      keySet in interface Map<K,V>
      Category
      READ
    • values

      public Collection<V> values()
      Specified by:
      values in interface Map<K,V>
      Category
      READ