public final class IntIntHash extends Object
| Modifier and Type | Field and Description |
|---|---|
protected float |
_autoCompactionFactor |
protected int |
_autoCompactRemovesRemaining |
protected int |
_free |
protected float |
_loadFactor |
int |
_maxSize |
int[] |
_set |
protected int |
_size |
| Constructor and Description |
|---|
IntIntHash() |
IntIntHash(int initialCapacity,
float loadFactor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
adjustValue(int key,
int i) |
protected int |
calculateGrownCapacity() |
protected int |
capacity() |
void |
clear() |
void |
compact() |
int |
computeHashCode(long value) |
boolean |
contains(int val) |
void |
ensureCapacity(int desiredCapacity) |
int |
get(int key) |
float |
getAutoCompactionFactor() |
int[] |
getValues() |
protected int |
insertionIndex(long val) |
int[] |
keys() |
protected void |
postInsertHook(boolean usedFreeSlot) |
void |
put(int key,
int value) |
protected void |
rehash(int newCapacity) |
int |
remove(int key) |
void |
setAutoCompactionFactor(float factor) |
protected int |
setUp(int initialCapacity) |
int |
size() |
protected int _size
protected int _free
protected float _loadFactor
public int _maxSize
protected int _autoCompactRemovesRemaining
protected float _autoCompactionFactor
public int[] _set
public IntIntHash()
public IntIntHash(int initialCapacity,
float loadFactor)
public int size()
public void ensureCapacity(int desiredCapacity)
public void compact()
public void setAutoCompactionFactor(float factor)
public float getAutoCompactionFactor()
protected final void postInsertHook(boolean usedFreeSlot)
protected int calculateGrownCapacity()
protected int capacity()
public boolean contains(int val)
protected int insertionIndex(long val)
public int computeHashCode(long value)
protected int setUp(int initialCapacity)
public void put(int key,
int value)
protected void rehash(int newCapacity)
public int get(int key)
public void clear()
public int remove(int key)
public int[] getValues()
public int[] keys()
public boolean adjustValue(int key,
int i)
index2 - i - Copyright © 2013. All rights reserved.