Class Long2LongHashMap.AbstractIterator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void findNext()
      Advance to the next entry.
      boolean hasNext()
      Check if there are more elements remaining.
      protected int keyPosition()
      Returns position of the key of the current entry.
      int remaining()
      Number of remaining elements.
      void remove()
      Removes from the underlying collection the last element returned by this iterator.
      (package private) void reset()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • isPositionValid

        protected boolean isPositionValid
        Is current position valid.
      • remaining

        private int remaining
      • positionCounter

        private int positionCounter
      • stopCounter

        private int stopCounter
    • Constructor Detail

      • AbstractIterator

        AbstractIterator()
    • Method Detail

      • reset

        final void reset()
      • keyPosition

        protected final int keyPosition()
        Returns position of the key of the current entry.
        Returns:
        key position.
      • remaining

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

        public boolean hasNext()
        Check if there are more elements remaining.
        Returns:
        true if remaining > 0.
      • findNext

        protected final void findNext()
        Advance to the next entry.
        Throws:
        java.util.NoSuchElementException - if no more entries available.
      • remove

        public void remove()
        Removes from the underlying collection the last element returned by this iterator.