java.lang.Object
com.sun.xml.fastinfoset.util.KeyIntMap
- Direct Known Subclasses:
CharArrayIntMap
,LocalNameQualifiedNamesMap
,StringIntMap
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
(package private) final float
The load factor for the hash table.(package private) int
(package private) int
The number of key-value mappings contained in this identity hash map.(package private) int
The next size value at which to resize (capacity * load factor).(package private) static final int
The default initial capacity - MUST be a power of two.(package private) static final float
The load factor used when none specified in constructor.(package private) static final int
The maximum capacity, used if a higher value is implicitly specified by either of the constructors with arguments.static final int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NOT_PRESENT
public static final int NOT_PRESENT- See Also:
-
DEFAULT_INITIAL_CAPACITY
static final int DEFAULT_INITIAL_CAPACITYThe default initial capacity - MUST be a power of two.- See Also:
-
MAXIMUM_CAPACITY
static final int MAXIMUM_CAPACITYThe maximum capacity, used if a higher value is implicitly specified by either of the constructors with arguments. MUST be a power of two<= 1<<30
.- See Also:
-
DEFAULT_LOAD_FACTOR
static final float DEFAULT_LOAD_FACTORThe load factor used when none specified in constructor.- See Also:
-
_readOnlyMapSize
int _readOnlyMapSize -
_size
int _sizeThe number of key-value mappings contained in this identity hash map. -
_capacity
int _capacity -
_threshold
int _thresholdThe next size value at which to resize (capacity * load factor). -
_loadFactor
final float _loadFactorThe load factor for the hash table.
-
-
Constructor Details
-
KeyIntMap
protected KeyIntMap(int initialCapacity, float loadFactor) -
KeyIntMap
protected KeyIntMap(int initialCapacity) -
KeyIntMap
protected KeyIntMap()
-
-
Method Details
-
size
public final int size() -
clear
public abstract void clear() -
setReadOnlyMap
-
hashHash
public static final int hashHash(int h) -
indexFor
public static final int indexFor(int h, int length)
-