Class StringMap
Simple utility class that creates a map for string-based keys.
This map can be set to use case-sensitive or case-insensitive
comparison when searching for the key. Any keys put into this
map will be converted to a String using the
toString() method, since it is only intended to
compare strings.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classNested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringMap.CharArrayComparatorprivate final TreeMap<char[], StringMap.KeyValueEntry> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object arg0) booleancontainsValue(Object arg0) entrySet()booleanisEmpty()voidintsize()private static char[]toUpperCase(String str) Methods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
COMPARATOR
-
m_map
-
-
Constructor Details
-
StringMap
public StringMap() -
StringMap
-
-
Method Details
-
size
-
isEmpty
-
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object> - Overrides:
containsKeyin classAbstractMap<String,Object>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Object> - Overrides:
containsValuein classAbstractMap<String,Object>
-
get
-
put
-
putAll
-
remove
-
clear
-
entrySet
-
toUpperCase
-