Package net.minecraft.util
Class IntIdentityHashBiMap<K>
- java.lang.Object
-
- net.minecraft.util.IntIdentityHashBiMap<K>
-
- All Implemented Interfaces:
java.lang.Iterable<K>
,IObjectIntIterable<K>
public class IntIdentityHashBiMap<K> extends java.lang.Object implements IObjectIntIterable<K>
-
-
Constructor Summary
Constructors Constructor Description IntIdentityHashBiMap(int p_i46830_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
getId
public int getId(@Nullable K p_148757_1_)
- Specified by:
getId
in interfaceIObjectIntIterable<K>
-
byId
@Nullable public K byId(int p_148745_1_)
- Specified by:
byId
in interfaceIObjectIntIterable<K>
-
getValue
private int getValue(int p_186805_1_)
-
add
public int add(K p_186808_1_)
-
nextId
private int nextId()
-
grow
private void grow(int p_186807_1_)
-
addMapping
public void addMapping(K p_186814_1_, int p_186814_2_)
-
hash
private int hash(@Nullable K p_186811_1_)
-
indexOf
private int indexOf(@Nullable K p_186816_1_, int p_186816_2_)
-
findEmpty
private int findEmpty(int p_186806_1_)
-
iterator
public java.util.Iterator<K> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<K>
-
clear
public void clear()
-
size
public int size()
-
-