org.inxar.syntacs.util
Interface IntIterator

All Known Implementing Classes:
EmptyIntSet, IntArrayIterator, SingletonIntSet

public interface IntIterator

The IntIterator interface is used to run through a list of integers.


Method Summary
 boolean hasNext()
          Returns true if there is at least one more element, false otherwise (at the end of the list).
 int next()
          Moves the index pointer forward by one and returns the value at that position.
 

Method Detail

hasNext

public boolean hasNext()
Returns true if there is at least one more element, false otherwise (at the end of the list).

next

public int next()
Moves the index pointer forward by one and returns the value at that position.