Package org.jppf.utils.collections
Class EnumSetEnumMap<S extends Enum<S>>
java.lang.Object
org.jppf.utils.collections.AbstractCollectionMap<S,S>
org.jppf.utils.collections.EnumSetEnumMap<S>
- Type Parameters:
S- the type of enumeration handled by this map.
- All Implemented Interfaces:
Serializable,Iterable<S>,CollectionMap<S,S>
A map whose keys and values are elements of an enum type.
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class org.jppf.utils.collections.AbstractCollectionMap
map -
Constructor Summary
ConstructorsConstructorDescriptionEnumSetEnumMap(Class<S> enumClass) Initialize this map with the specified enumeration class. -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<S,Collection<S>> Create a new map.protected Collection<S>Create a new collection of values for insertion into the map.Methods inherited from class org.jppf.utils.collections.AbstractCollectionMap
addValues, addValues, allValues, clear, containsKey, containsValue, containsValue, createOrGetCollection, createOrGetCollectionSynchronized, entrySet, getValues, isEmpty, iterator, iterator, keySet, putValue, removeKey, removeValue, removeValues, size, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jppf.utils.collections.CollectionMap
forEachMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
EnumSetEnumMap
Initialize this map with the specified enumeration class.- Parameters:
enumClass- the class of the enumeration handled by this map.
-
-
Method Details
-
createMap
Description copied from class:AbstractCollectionMapCreate a new map. -
newCollection
Description copied from class:AbstractCollectionMapCreate a new collection of values for insertion into the map.- Specified by:
newCollectionin classAbstractCollectionMap<S extends Enum<S>,S extends Enum<S>> - Returns:
- a new mutable empty collection.
-