public class OpenIntDoubleHashMap extends AbstractIntDoubleMap
| Modifier and Type | Field and Description |
|---|---|
protected static byte |
FREE |
protected int |
freeEntries |
protected static byte |
FULL |
protected static int |
NO_KEY_VALUE |
protected static byte |
REMOVED |
protected byte[] |
state |
protected int[] |
table |
protected double[] |
values |
defaultCapacity, defaultMaxLoadFactor, defaultMinLoadFactor, distinct, highWaterMark, lowWaterMark, maxLoadFactor, minLoadFactor| Constructor and Description |
|---|
OpenIntDoubleHashMap() |
OpenIntDoubleHashMap(int initialCapacity) |
OpenIntDoubleHashMap(int initialCapacity,
double minLoadFactor,
double maxLoadFactor) |
| Modifier and Type | Method and Description |
|---|---|
double |
adjustOrPutValue(int key,
double newValue,
double incrValue) |
void |
clear() |
Object |
clone() |
boolean |
containsKey(int key) |
boolean |
containsValue(double value) |
void |
ensureCapacity(int minCapacity) |
boolean |
forEachKey(IntProcedure procedure) |
boolean |
forEachPair(IntDoubleProcedure procedure) |
double |
get(int key) |
protected void |
getInternalFactors(int[] capacity,
double[] minLoadFactor,
double[] maxLoadFactor) |
protected int |
indexOfInsertion(int key) |
protected int |
indexOfKey(int key) |
protected int |
indexOfValue(double value) |
void |
keys(IntArrayList list) |
void |
pairsMatching(IntDoubleProcedure condition,
IntArrayList keyList,
DoubleArrayList valueList) |
boolean |
put(int key,
double value) |
protected void |
rehash(int newCapacity) |
boolean |
removeKey(int key) |
protected void |
setUp(int initialCapacity,
double minLoadFactor,
double maxLoadFactor) |
void |
trimToSize() |
void |
values(DoubleArrayList list) |
assign, assign, copy, equals, keys, keysSortedByValue, pairsSortedByKey, pairsSortedByValue, toString, toStringByValue, valueschooseGrowCapacity, chooseHighWaterMark, chooseLowWaterMark, chooseMeanCapacity, chooseShrinkCapacity, equalsMindTheNull, isEmpty, nextPrime, sizeprotected static final byte FREE
protected static final byte FULL
protected static final byte REMOVED
protected static final int NO_KEY_VALUE
protected int[] table
protected double[] values
protected byte[] state
protected int freeEntries
public OpenIntDoubleHashMap()
public OpenIntDoubleHashMap(int initialCapacity)
public OpenIntDoubleHashMap(int initialCapacity,
double minLoadFactor,
double maxLoadFactor)
public void clear()
clear in class AbstractSetpublic Object clone()
clone in class PersistentObjectpublic boolean containsKey(int key)
containsKey in class AbstractIntDoubleMappublic boolean containsValue(double value)
containsValue in class AbstractIntDoubleMappublic void ensureCapacity(int minCapacity)
ensureCapacity in class AbstractSetpublic boolean forEachKey(IntProcedure procedure)
forEachKey in class AbstractIntDoubleMappublic boolean forEachPair(IntDoubleProcedure procedure)
forEachPair in class AbstractIntDoubleMappublic double get(int key)
get in class AbstractIntDoubleMapprotected int indexOfInsertion(int key)
protected int indexOfKey(int key)
protected int indexOfValue(double value)
public void keys(IntArrayList list)
keys in class AbstractIntDoubleMappublic void pairsMatching(IntDoubleProcedure condition, IntArrayList keyList, DoubleArrayList valueList)
pairsMatching in class AbstractIntDoubleMappublic boolean put(int key,
double value)
put in class AbstractIntDoubleMappublic double adjustOrPutValue(int key,
double newValue,
double incrValue)
adjustOrPutValue in class AbstractIntDoubleMapprotected void rehash(int newCapacity)
public boolean removeKey(int key)
removeKey in class AbstractIntDoubleMapprotected void setUp(int initialCapacity,
double minLoadFactor,
double maxLoadFactor)
setUp in class AbstractSetpublic void trimToSize()
trimToSize in class AbstractSetpublic void values(DoubleArrayList list)
values in class AbstractIntDoubleMapprotected void getInternalFactors(int[] capacity,
double[] minLoadFactor,
double[] maxLoadFactor)