Class ObjectIntIdentityMap<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<T> idToT  
      protected int nextId  
      protected java.util.IdentityHashMap<T,​java.lang.Integer> tToId  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(T p_195867_1_)  
      void addMapping​(T p_148746_1_, int p_148746_2_)  
      T byId​(int p_148745_1_)  
      int getId​(T p_148757_1_)  
      java.util.Iterator<T> iterator()  
      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

      • nextId

        protected int nextId
      • tToId

        protected final java.util.IdentityHashMap<T,​java.lang.Integer> tToId
      • idToT

        protected final java.util.List<T> idToT
    • Constructor Detail

      • ObjectIntIdentityMap

        public ObjectIntIdentityMap()
      • ObjectIntIdentityMap

        public ObjectIntIdentityMap​(int p_i46984_1_)
    • Method Detail

      • addMapping

        public void addMapping​(T p_148746_1_,
                               int p_148746_2_)
      • add

        public void add​(T p_195867_1_)
      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>
      • size

        public int size()