Interface IntIterator


public interface IntIterator
An iterator over a sequence of unboxed int values
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Test whether there are any more integers in the sequence
    int
    Return the next integer in the sequence.
  • Method Details

    • hasNext

      boolean hasNext()
      Test whether there are any more integers in the sequence
    • next

      int next()
      Return the next integer in the sequence. The result is undefined unless hasNext() has been called and has returned true.