Class FastBuildMap
This Map is optimized for fast building and serialization.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()keySet()WARNING: All key must be unique!voidintsize()values()Methods inherited from class AbstractMap
clone, equals, hashCode, toStringMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
size
protected int size -
keys
-
values
-
-
Constructor Details
-
FastBuildMap
protected FastBuildMap(int size)
-
-
Method Details
-
put
-
entrySet
-
size
-
isEmpty
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Object> - Overrides:
containsValuein classAbstractMap<String,Object>
-
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object> - Overrides:
containsKeyin classAbstractMap<String,Object>
-
get
-
remove
-
putAll
-
clear
-
keySet
-
values
-