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_SLOT |
private K[] |
keys |
private int |
nextId |
private int |
size |
private int[] |
values |
Constructor and Description |
---|
IntIdentityHashBiMap(int p_i46830_1_) |
Modifier and Type | Method and Description |
---|---|
int |
add(K p_186808_1_) |
void |
addMapping(K p_186814_1_,
int p_186814_2_) |
K |
byId(int p_148745_1_) |
void |
clear() |
private int |
findEmpty(int p_186806_1_) |
int |
getId(K p_148757_1_) |
private int |
getValue(int p_186805_1_) |
private void |
grow(int p_186807_1_) |
private int |
hash(K p_186811_1_) |
private int |
indexOf(K p_186816_1_,
int p_186816_2_) |
java.util.Iterator<K> |
iterator() |
private int |
nextId() |
int |
size() |
private static final java.lang.Object EMPTY_SLOT
private K[] keys
private int[] values
private K[] byId
private int nextId
private int size
public int getId(@Nullable K p_148757_1_)
getId
in interface IObjectIntIterable<K>
@Nullable public K byId(int p_148745_1_)
byId
in interface IObjectIntIterable<K>
private int getValue(int p_186805_1_)
public int add(K p_186808_1_)
private int nextId()
private void grow(int p_186807_1_)
public void addMapping(K p_186814_1_, int p_186814_2_)
private int hash(@Nullable K p_186811_1_)
private int indexOf(@Nullable K p_186816_1_, 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()