public abstract class KeyIntMap
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
KeyIntMap.BaseEntry |
Modifier and Type | Field and Description |
---|---|
(package private) int |
_capacity |
(package private) float |
_loadFactor
The load factor for the hash table.
|
(package private) int |
_readOnlyMapSize |
(package private) int |
_size
The number of key-value mappings contained in this identity hash map.
|
(package private) int |
_threshold
The next size value at which to resize (capacity * load factor).
|
(package private) static int |
DEFAULT_INITIAL_CAPACITY
The default initial capacity - MUST be a power of two.
|
(package private) static float |
DEFAULT_LOAD_FACTOR
The load factor used when none specified in constructor.
|
(package private) static int |
MAXIMUM_CAPACITY
The maximum capacity, used if a higher value is implicitly specified
by either of the constructors with arguments.
|
static int |
NOT_PRESENT |
Constructor and Description |
---|
KeyIntMap() |
KeyIntMap(int initialCapacity) |
KeyIntMap(int initialCapacity,
float loadFactor) |
Modifier and Type | Method and Description |
---|---|
abstract void |
clear() |
static int |
hashHash(int h) |
static int |
indexFor(int h,
int length) |
abstract void |
setReadOnlyMap(KeyIntMap readOnlyMap,
boolean clear) |
int |
size() |
public static final int NOT_PRESENT
static final int DEFAULT_INITIAL_CAPACITY
static final int MAXIMUM_CAPACITY
static final float DEFAULT_LOAD_FACTOR
int _readOnlyMapSize
int _size
int _capacity
int _threshold
final float _loadFactor
public KeyIntMap(int initialCapacity, float loadFactor)
public KeyIntMap(int initialCapacity)
public KeyIntMap()
public final int size()
public abstract void clear()
public abstract void setReadOnlyMap(KeyIntMap readOnlyMap, boolean clear)
public static final int hashHash(int h)
public static final int indexFor(int h, int length)