Class CommonsEnumMap<KEYTYPE extends Enum<KEYTYPE>,VALUETYPE>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.EnumMap<KEYTYPE,VALUETYPE>
-
- com.helger.commons.collection.impl.CommonsEnumMap<KEYTYPE,VALUETYPE>
-
- Type Parameters:
KEYTYPE- Map key typeVALUETYPE- Map value type
- All Implemented Interfaces:
ICommonsMap<KEYTYPE,VALUETYPE>,ICloneable<ICommonsMap<KEYTYPE,VALUETYPE>>,Serializable,Cloneable,Map<KEYTYPE,VALUETYPE>
public class CommonsEnumMap<KEYTYPE extends Enum<KEYTYPE>,VALUETYPE> extends EnumMap<KEYTYPE,VALUETYPE> implements ICommonsMap<KEYTYPE,VALUETYPE>
A specialEnumMapimplementation based onICommonsMap.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description CommonsEnumMap(Class<KEYTYPE> aKeyClass)CommonsEnumMap(EnumMap<KEYTYPE,? extends VALUETYPE> aMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommonsEnumMap<KEYTYPE,VALUETYPE>getClone()-
Methods inherited from class java.util.EnumMap
clear, clone, containsKey, containsValue, entrySet, equals, get, hashCode, keySet, put, putAll, 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 com.helger.commons.collection.impl.ICommonsMap
addAll, containsAnyEntry, containsAnyKey, containsAnyValue, copyOfEntrySet, copyOfKeySet, copyOfKeySet, copyOfValues, copyOfValues, copyOfValuesMapped, copyOfValuesMapped, createInstance, findFirstEntry, findFirstKey, findFirstValue, forEach, forEachKey, forEachKey, forEachValue, forEachValue, getAsUnmodifiable, getFirstEntry, getFirstEntry, getFirstKey, getFirstKey, getFirstValue, getFirstValue, getSortedByKey, getSortedByValue, getSwappedKeyValues, isNotEmpty, put, putAll, putAll, putAllMapped, putAllMapped, putAllMapped, putIf, putIfNotNull, removeAll, removeIf, removeIfKey, removeIfValue, removeObject, setAll
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
getClone
@Nonnull @ReturnsMutableCopy public CommonsEnumMap<KEYTYPE,VALUETYPE> getClone()
- Specified by:
getClonein interfaceICloneable<KEYTYPE extends Enum<KEYTYPE>>- Returns:
- A 100% deep-copy of the implementing class.
-
-