Package ball.util
Class EnumLookupMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.TreeMap<String,Enum<?>>
-
- ball.util.EnumLookupMap
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Enum<?>>
,NavigableMap<String,Enum<?>>
,SortedMap<String,Enum<?>>
public class EnumLookupMap extends TreeMap<String,Enum<?>>
SortedMap
implementation which providesString.CASE_INSENSITIVE_ORDER
look-up by name to the correspondingEnum
.- Author:
- Allen D. Ball
- 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 EnumLookupMap(Class<? extends Enum<?>>... types)
Sole constructor.
-
Method Summary
-
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, remove
-
-
-
-
Constructor Detail
-
EnumLookupMap
@SafeVarargs public EnumLookupMap(Class<? extends Enum<?>>... types)
Sole constructor.- Parameters:
types
- TheEnum
types to include.
-
-