Class CrudeIncrementalIntIdentityHashBiMap<K>

java.lang.Object
net.minecraft.util.CrudeIncrementalIntIdentityHashBiMap<K>
All Implemented Interfaces:
Iterable<K>, IdMap<K>

public class CrudeIncrementalIntIdentityHashBiMap<K> extends Object implements IdMap<K>
  • Field Details

    • NOT_FOUND

      public static final int NOT_FOUND
      See Also:
      Constant Field Values
    • EMPTY_SLOT

      private static final Object EMPTY_SLOT
    • LOADFACTOR

      private static final float LOADFACTOR
      See Also:
      Constant Field Values
    • keys

      private K[] keys
    • values

      private int[] values
    • byId

      private K[] byId
    • nextId

      private int nextId
    • size

      private int size
  • Constructor Details

    • CrudeIncrementalIntIdentityHashBiMap

      public CrudeIncrementalIntIdentityHashBiMap(int p_13553_)
  • Method Details

    • getId

      public int getId(@Nullable K p_13558_)
      Specified by:
      getId in interface IdMap<K>
    • byId

      @Nullable public K byId(int p_13556_)
      Specified by:
      byId in interface IdMap<K>
    • getValue

      private int getValue(int p_13568_)
    • contains

      public boolean contains(K p_144610_)
    • contains

      public boolean contains(int p_144608_)
    • add

      public int add(K p_13570_)
    • nextId

      private int nextId()
    • grow

      private void grow(int p_13572_)
    • addMapping

      public void addMapping(K p_13560_, int p_13561_)
    • hash

      private int hash(@Nullable K p_13574_)
    • indexOf

      private int indexOf(@Nullable K p_13564_, int p_13565_)
    • findEmpty

      private int findEmpty(int p_13576_)
    • iterator

      public Iterator<K> iterator()
      Specified by:
      iterator in interface Iterable<K>
    • clear

      public void clear()
    • size

      public int size()