Class Long2ObjectHashMap.AbstractIterator<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void findNext()
      Find the next element.
      boolean hasNext()
      abstract T next()
      protected int position()
      Position of the current element.
      int remaining()
      Number of remaining elements.
      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

      • posCounter

        private int posCounter
      • stopCounter

        private int stopCounter
      • remaining

        private int remaining
      • isPositionValid

        boolean isPositionValid
    • Constructor Detail

      • AbstractIterator

        AbstractIterator()
    • Method Detail

      • position

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

        public int remaining()
        Number of remaining elements.
        Returns:
        number of remaining elements.
      • hasNext

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

        protected final void findNext()
        Find the next element.
        Throws:
        java.util.NoSuchElementException - if no more elements.
      • 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

        final void reset()