Package zombie.util
Interface IntIterator
- All Known Subinterfaces:
IntListIterator
public interface IntIterator
This class represents iterators over collections of int values.
- Since:
- 1.0
- See Also:
-
Method Summary
-
Method Details
-
hasNext
boolean hasNext()Indicates whether more int values can be returned by this iterator.- Returns:
- true if more int values can be returned by this iterator; returns false otherwise.
- See Also:
-
next
int next()Returns the next int value of this iterator.- Returns:
- the next int value of this iterator.
- Throws:
NoSuchElementException
- if no more elements are available from this iterator.- See Also:
-
remove
void remove()Removes the last int value returned from the underlying collection.- Throws:
UnsupportedOperationException
- if removal is not supported by this iterator.IllegalStateException
- if no element has been returned by this iterator yet.
-