Interface IntIterator

All Known Implementing Classes:
CompoundIntIterator, EmptyIntIterator

public interface IntIterator
a more efficient iterator for sets of integers
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
  • Method Details

    • hasNext

      boolean hasNext()
      Returns:
      true iff this iterator has a next element
    • next

      int next()
      Returns:
      next integer in the iteration