Package eu.bandm.tools.umod.runtime
Class CheckedEnumMap<D extends Enum<D>,R>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.EnumMap<D,R>
eu.bandm.tools.umod.runtime.CheckedEnumMap<D,R>
- All Implemented Interfaces:
Map_checkedLeft<D,
,R> Map_checkedRight<D,
,R> Serializable
,Cloneable
,Map<D,
R>
public class CheckedEnumMap<D extends Enum<D>,R>
extends EnumMap<D,R>
implements Map_checkedRight<D,R>, Map_checkedLeft<D,R>
Implements a map from an enum type to a strict range (no null objects on the right side.)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorDescriptionCheckedEnumMap
(Class<D> d) CheckedEnumMap
(EnumMap<D, R> data) CheckedEnumMap
(Map<D, R> data) -
Method Summary
Methods inherited from class java.util.EnumMap
clear, clone, containsKey, containsValue, equals, get, hashCode, keySet, remove, size, values
Methods inherited from class java.util.AbstractMap
isEmpty, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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
-
CheckedEnumMap
-
CheckedEnumMap
-
CheckedEnumMap
-
-
Method Details
-
entrySet
Needs special implementation of entrySet, Iterator and Map.Entry for prohibiting "setValue(null)"! -
put
-
putAll
-