Class CompactStringObjectMap
java.lang.Object
tools.jackson.databind.util.CompactStringObjectMap
- All Implemented Interfaces:
Serializable
Specialized lookup class that implements functionality similar to
Map, but for special case of key always being
String and using more compact (and memory-access
friendly) hashing scheme. Assumption is also that keys are typically
intern()ed.
Generics are not used to avoid bridge methods and since these maps are not exposed as part of external API.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Object[]private final intprivate final intprivate static final CompactStringObjectMapShared instance that can be used when there are no contents to Map.private static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCompactStringObjectMap(int hashMask, int spillCount, Object[] hashArea) -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
EMPTY
Shared instance that can be used when there are no contents to Map. -
_hashMask
private final int _hashMask -
_spillCount
private final int _spillCount -
_hashArea
-
-
Constructor Details
-
CompactStringObjectMap
-
-
Method Details
-
construct
-
findSize
private static final int findSize(int size) -
find
-
_find2
-
findCaseInsensitive
-
keys
-