Class IntIdentityHashBiMap<K>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private K[] byId  
      private static java.lang.Object EMPTY_SLOT  
      private K[] keys  
      private int nextId  
      private int size  
      private int[] values  
    • 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()  
      • 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 Detail

      • EMPTY_SLOT

        private static final java.lang.Object EMPTY_SLOT
      • keys

        private K[] keys
      • values

        private int[] values
      • byId

        private K[] byId
      • nextId

        private int nextId
      • size

        private int size
    • Constructor Detail

      • IntIdentityHashBiMap

        public IntIdentityHashBiMap​(int p_i46830_1_)
    • Method Detail

      • 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 interface java.lang.Iterable<K>
      • clear

        public void clear()
      • size

        public int size()