Package eu.bandm.tools.umod.runtime
Class CheckedMap_RD<D,R>
java.lang.Object
eu.bandm.tools.umod.runtime.MapProxy<D,R>
eu.bandm.tools.umod.runtime.CheckedMap_RD<D,R>
- All Implemented Interfaces:
Map_checkedLeft<D,,R> Map_checkedRight<D,,R> Serializable,Map<D,R>
public class CheckedMap_RD<D,R>
extends MapProxy<D,R>
implements Map_checkedLeft<D,R>, Map_checkedRight<D,R>
Implements a map which is strict in its range (=right of arrow)
and 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:
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.tools.umod.runtime.MapProxy
MapProxy.CheckedMapEntry<A,B>, MapProxy.CheckedMapEntryIterator<A, B>, MapProxy.CheckedMapEntrySet<A, B>, MapProxy.implementations -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCheckedMap_RD(MapProxy.implementations implementation) CheckedMap_RD(Map<D, R> peer) -
Method Summary
Modifier and TypeMethodDescriptionstatic <D1,R1> CheckedMap_RD <D1, R1> empty()entrySet()Needs special implementation of entrySet, Iterator and Map.Entry for prohibiting "setValue(null)"!Is overridden by subclass to make non-null checks.voidIs overridden by subclass to make non-null checks.Methods inherited from class eu.bandm.tools.umod.runtime.MapProxy
asSorted, clear, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, remove, size, toString, valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Constructor Details
-
CheckedMap_RD
public CheckedMap_RD() -
CheckedMap_RD
-
CheckedMap_RD
-
-
Method Details
-
empty
-
put
Description copied from class:MapProxyIs overridden by subclass to make non-null checks. -
putAll
Description copied from class:MapProxyIs overridden by subclass to make non-null checks. -
entrySet
Needs special implementation of entrySet, Iterator and Map.Entry for prohibiting "setValue(null)"!
-