Class CheckedMap_D<D,R>

java.lang.Object
eu.bandm.tools.umod.runtime.MapProxy<D,R>
eu.bandm.tools.umod.runtime.CheckedMap_D<D,R>
All Implemented Interfaces:
Map_checkedLeft<D,R>, Serializable, Map<D,R>

public class CheckedMap_D<D,R> extends MapProxy<D,R> implements Map_checkedLeft<D,R>
Implements a map which is strict in its domain (=left of arrow). The implementation is done by delegation to some peer object from a predefined java runtime class. The kind of implementation (hash map or tree map) can be selected by a parameter to the constructor.
See Also:
  • Constructor Details

    • CheckedMap_D

      public CheckedMap_D()
    • CheckedMap_D

      public CheckedMap_D(MapProxy.implementations implementation)
    • CheckedMap_D

      public CheckedMap_D(Map<D,R> peer)
  • Method Details

    • put

      public R put(D key, R value)
      Description copied from class: MapProxy
      Is overridden by subclass to make non-null checks.
      Specified by:
      put in interface Map<D,R>
      Overrides:
      put in class MapProxy<D,R>
    • putAll

      public void putAll(Map<? extends D,? extends R> t)
      Description copied from class: MapProxy
      Is overridden by subclass to make non-null checks.
      Specified by:
      putAll in interface Map<D,R>
      Overrides:
      putAll in class MapProxy<D,R>