Class CheckedMap_R<D,R>

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

public class CheckedMap_R<D,R> extends MapProxy<D,R> implements Map_checkedRight<D,R>
Implements a map which is strict in its range (=right 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_R

      public CheckedMap_R()
    • CheckedMap_R

      public CheckedMap_R(MapProxy.implementations implementation)
    • CheckedMap_R

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

    • entrySet

      public Set<Map.Entry<D,R>> entrySet()
      Needs special implementation of entrySet, Iterator and Map.Entry for prohibiting "setValue(null)"!
      Specified by:
      entrySet in interface Map<D,R>
      Overrides:
      entrySet in class MapProxy<D,R>
    • 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>