Package net.minecraft.util
Class IntIdentityHashBiMap<K>
java.lang.Object
net.minecraft.util.IntIdentityHashBiMap<K>
- All Implemented Interfaces:
Iterable<K>
,IObjectIntIterable<K>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
addMapping
(K p_186814_1_, int p_186814_2_) byId
(int p_148745_1_) void
clear()
private int
findEmpty
(int p_186806_1_) int
private int
getValue
(int p_186805_1_) private void
grow
(int p_186807_1_) private int
private int
iterator()
private int
nextId()
int
size()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
EMPTY_SLOT
-
keys
-
values
private int[] values -
byId
-
nextId
private int nextId -
size
private int size
-
-
Constructor Details
-
IntIdentityHashBiMap
public IntIdentityHashBiMap(int p_i46830_1_)
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceIObjectIntIterable<K>
-
byId
- Specified by:
byId
in interfaceIObjectIntIterable<K>
-
getValue
private int getValue(int p_186805_1_) -
add
-
nextId
private int nextId() -
grow
private void grow(int p_186807_1_) -
addMapping
-
hash
-
indexOf
-
findEmpty
private int findEmpty(int p_186806_1_) -
iterator
-
clear
public void clear() -
size
public int size()
-