public interface EnumMapStrategy<K extends Enum<K>,V> extends IsAbstractMapStrategy<K,V>
Strategy for an enum map.
| Modifier and Type | Method and Description |
|---|---|
static <K extends Enum<K>,V> |
create()
Creates a new hash map strategy.
|
default EnumMap<K,V> |
get()
Returns a new map for the used strategy.
|
default EnumMap<K,V> |
get(Class<K> keyType)
Returns a new enum map for given key type.
|
default EnumMap<K,V> |
get(Map<K,V> map)
Returns a new map for the used strategy initialized with the elements of another map.
|
isAbstractMap, isConcurrentMap, isHashtable, isNavigableMap, isSortedMapdefault EnumMap<K,V> get()
IsMapStrategyReturns a new map for the used strategy.
default EnumMap<K,V> get(Map<K,V> map)
IsMapStrategyReturns a new map for the used strategy initialized with the elements of another map.
default EnumMap<K,V> get(Class<K> keyType)
Returns a new enum map for given key type.
keyType - key typestatic <K extends Enum<K>,V> EnumMapStrategy<K,V> create()
Creates a new hash map strategy.
K - type of the keys in the mapV - type of the values in the mapCopyright © 2016–2017. All rights reserved.