public class Long2IntOpenHashMap extends Object implements Serializable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
containsNullKey |
protected int |
defRetValue |
protected static float |
FILL_FACTOR |
protected static int |
INITIAL_ELEMENT_COUNT |
protected long[] |
key |
protected int |
mask |
protected int |
maxFill |
protected int |
minN |
protected int |
n |
protected int |
size |
protected int[] |
value |
| Constructor and Description |
|---|
Long2IntOpenHashMap() |
| Modifier and Type | Method and Description |
|---|---|
int |
addTo(long k,
int incr)
Add incr to the existing value for key k.
|
int |
get(long k)
Get the value for key k
|
int |
getDefaultReturnValue() |
static long |
mix(long x) |
protected void |
rehash(int newN) |
int |
remove(long k)
Remove key k and its corresponding value from the map
|
void |
setDefaultReturnValue(int rv) |
protected void |
shiftKeys(int pos) |
int |
size()
Return the number of entries in the map
|
protected static final float FILL_FACTOR
protected static final int INITIAL_ELEMENT_COUNT
protected transient long[] key
protected transient int[] value
protected transient int mask
protected transient boolean containsNullKey
protected transient int n
protected transient int maxFill
protected final transient int minN
protected int size
protected int defRetValue
public void setDefaultReturnValue(int rv)
public int getDefaultReturnValue()
public int addTo(long k,
int incr)
k - keyincr - The increment value to be added to the existing value for key kpublic int get(long k)
k - keypublic int remove(long k)
k - keypublic int size()
protected void rehash(int newN)
public static long mix(long x)
protected final void shiftKeys(int pos)
Copyright © 2012–2022. All rights reserved.