Package eu.bandm.tools.util.nonnull
Class NonNullEnumMap<D extends Enum<D>,R>
java.lang.Object
java.util.AbstractMap<D,R>
java.util.EnumMap<D,R>
eu.bandm.tools.util.nonnull.NonNullEnumMap<D,R>
- All Implemented Interfaces:
NonNullKeyMap<D,,R> NonNullMap<D,,R> NonNullValueMap<D,,R> Serializable,Cloneable,Map<D,R>
Implements a map from an enum type to a strict range.
No null objects can appear on the right side.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> Nested classes/interfaces inherited from interface eu.bandm.tools.util.nonnull.NonNullMap
NonNullMap.MyProxy<K2,V2> -
Constructor Summary
ConstructorsConstructorDescriptionNonNullEnumMap(Class<D> d) NonNullEnumMap(EnumMap<D, R> data) NonNullEnumMap(Map<D, R> data) -
Method Summary
Methods inherited from class java.util.EnumMap
clear, clone, containsKey, containsValue, equals, get, hashCode, keySet, remove, size, valuesMethods inherited from class java.util.AbstractMap
isEmpty, toStringMethods inherited from class java.lang.Object
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
-
NonNullEnumMap
-
NonNullEnumMap
-
NonNullEnumMap
-
-
Method Details
-
entrySet
Needs special implementation of entrySet, Iterator, and Map.Entry for prohibiting setValue(null), -
asSorted
This method is required by the interface, but should never be called, since EnumMap are sorted anyhow. -
put
-
putAll
-