Class Object2ObjectHashMap.AbstractIterator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void findNext()
      Find next element.
      boolean hasNext()
      Check if there is next element to iterate.
      (package private) int keyPosition()  
      int remaining()
      Return 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
    • Field Detail

      • isPositionValid

        protected boolean isPositionValid
        Is 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

        final int keyPosition()
      • remaining

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

        public boolean hasNext()
        Check if there is next element to iterate.
        Returns:
        true if remaining > 0.
      • findNext

        protected final void findNext()
        Find next element.
        Throws:
        java.util.NoSuchElementException - if no more elements.
      • remove

        public void remove()