Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.util

public final Class CompactStringObjectMap

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.util.*

Specialized lookup class that implements functionality similar to java.util.Map, but for special case of key always being java.lang.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.

Since
2.6

Field Summary

Modifier and TypeField and Description
private final Object[]
private final int
private final int
private static final CompactStringObjectMap
EMPTY

Shared instance that can be used when there are no contents to Map.

private static final long

Constructor Summary

AccessConstructor and Description
private
CompactStringObjectMap(int hashMask, int spillCount, Object[] hashArea)

Method Summary

Modifier and TypeMethod and Description
private final Object
_find2(String key, int slot, Object match)

public static <T> CompactStringObjectMap
construct(Map<String, T> all)

public Object
find(String key)

public Object
private static final int
findSize(int size)

public List<String>
keys()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_hashAreaback to summary
private final Object[] _hashArea
_hashMaskback to summary
private final int _hashMask
_spillCountback to summary
private final int _spillCount
EMPTYback to summary
private static final CompactStringObjectMap EMPTY

Shared instance that can be used when there are no contents to Map.

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

CompactStringObjectMapback to summary
private CompactStringObjectMap(int hashMask, int spillCount, Object[] hashArea)

Method Detail

_find2back to summary
private final Object _find2(String key, int slot, Object match)
constructback to summary
public static <T> CompactStringObjectMap construct(Map<String, T> all)
findback to summary
public Object find(String key)
findCaseInsensitiveback to summary
public Object findCaseInsensitive(String key)
findSizeback to summary
private static final int findSize(int size)
keysback to summary
public List<String> keys()