Package com.sun.xml.fastinfoset.util
Class KeyIntMap
- java.lang.Object
-
- com.sun.xml.fastinfoset.util.KeyIntMap
-
- Direct Known Subclasses:
CharArrayIntMap,LocalNameQualifiedNamesMap,StringIntMap
public abstract class KeyIntMap extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classKeyIntMap.BaseEntry
-
Field Summary
Fields Modifier and Type Field Description (package private) int_capacity(package private) float_loadFactorThe load factor for the hash table.(package private) int_readOnlyMapSize(package private) int_sizeThe number of key-value mappings contained in this identity hash map.(package private) int_thresholdThe next size value at which to resize (capacity * load factor).(package private) static intDEFAULT_INITIAL_CAPACITYThe default initial capacity - MUST be a power of two.(package private) static floatDEFAULT_LOAD_FACTORThe load factor used when none specified in constructor.(package private) static intMAXIMUM_CAPACITYThe maximum capacity, used if a higher value is implicitly specified by either of the constructors with arguments.static intNOT_PRESENT
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidclear()static inthashHash(int h)static intindexFor(int h, int length)abstract voidsetReadOnlyMap(KeyIntMap readOnlyMap, boolean clear)intsize()
-
-
-
Field Detail
-
NOT_PRESENT
public static final int NOT_PRESENT
- See Also:
- Constant Field Values
-
DEFAULT_INITIAL_CAPACITY
static final int DEFAULT_INITIAL_CAPACITY
The default initial capacity - MUST be a power of two.- See Also:
- Constant Field Values
-
MAXIMUM_CAPACITY
static final int MAXIMUM_CAPACITY
The 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:
- Constant Field Values
-
DEFAULT_LOAD_FACTOR
static final float DEFAULT_LOAD_FACTOR
The load factor used when none specified in constructor.- See Also:
- Constant Field Values
-
_readOnlyMapSize
int _readOnlyMapSize
-
_size
int _size
The number of key-value mappings contained in this identity hash map.
-
_capacity
int _capacity
-
_threshold
int _threshold
The next size value at which to resize (capacity * load factor).
-
_loadFactor
final float _loadFactor
The load factor for the hash table.
-
-
Method Detail
-
size
public final int size()
-
clear
public abstract void clear()
-
setReadOnlyMap
public abstract void setReadOnlyMap(KeyIntMap readOnlyMap, boolean clear)
-
hashHash
public static final int hashHash(int h)
-
indexFor
public static final int indexFor(int h, int length)
-
-