Class Int2ObjectCache.AbstractIterator<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int position  
      private int remaining  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void findNext()
      Find next element.
      boolean hasNext()
      abstract T next()
      protected int position()
      Position of the current element.
      void remove()
      (package private) void reset()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Field Detail

      • remaining

        private int remaining
      • position

        private int position
    • Constructor Detail

      • AbstractIterator

        AbstractIterator()
    • Method Detail

      • position

        protected final int position()
        Position of the current element.
        Returns:
        position of the current element.
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<T>
      • findNext

        protected final void findNext()
        Find next element.
      • next

        public abstract T next()
        Specified by:
        next in interface java.util.Iterator<T>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<T>
      • reset

        void reset()