Interface IntIterator


  • public interface IntIterator
    Iterator over a set of Java-type int values.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Return true if there is a next int in this iterator.
      boolean hasPrevious()
      Return true if there a previous int in this iterator.
      int next()
      Get the next int value in this iterator.
      int previous()
      Get the previous int value in this iterator.
      void remove()
      Removes from the underlying collection the last element returned by the iterator (optional operation).
    • Method Detail

      • hasNext

        boolean hasNext()
        Return true if there is a next int in this iterator.
      • next

        int next()
        Get the next int value in this iterator.
      • hasPrevious

        boolean hasPrevious()
        Return true if there a previous int in this iterator.
      • previous

        int previous()
        Get the previous int value in this iterator.
      • remove

        void remove()
        Removes from the underlying collection the last element returned by the iterator (optional operation).