public class IntIdentityHashBiMap<K> extends java.lang.Object implements IObjectIntIterable<K>
Modifier and Type | Field and Description |
---|---|
private K[] |
byId |
private static java.lang.Object |
EMPTY |
private int[] |
intKeys |
private int |
mapSize |
private int |
nextFreeIndex |
private K[] |
values |
Constructor and Description |
---|
IntIdentityHashBiMap(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
int |
add(K objectIn) |
void |
clear() |
private int |
findEmpty(int p_186806_1_) |
K |
get(int idIn) |
int |
getId(K p_186815_1_) |
private int |
getIndex(K objectIn,
int p_186816_2_) |
private int |
getValue(int p_186805_1_) |
private void |
grow(int capacity) |
private int |
hashObject(K obectIn) |
java.util.Iterator<K> |
iterator() |
private int |
nextId() |
void |
put(K objectIn,
int intKey) |
int |
size() |
private static final java.lang.Object EMPTY
private K[] values
private int[] intKeys
private K[] byId
private int nextFreeIndex
private int mapSize
public int getId(@Nullable K p_186815_1_)
@Nullable public K get(int idIn)
private int getValue(int p_186805_1_)
public int add(K objectIn)
private int nextId()
private void grow(int capacity)
public void put(K objectIn, int intKey)
private int hashObject(@Nullable K obectIn)
private int getIndex(@Nullable K objectIn, int p_186816_2_)
private int findEmpty(int p_186806_1_)
public java.util.Iterator<K> iterator()
iterator
in interface java.lang.Iterable<K>
public void clear()
public int size()