Interface PeekableIntIterator

All Superinterfaces:
Cloneable, IntIterator
All Known Subinterfaces:
PeekableIntRankIterator
All Known Implementing Classes:
BufferIntIteratorFlyweight, IntIteratorFlyweight

public interface PeekableIntIterator extends IntIterator
Simple extension to the IntIterator interface. It allows you to "skip" values using the advanceIfNeeded method, and to look at the value without advancing (peekNext). This richer interface enables efficient algorithms over iterators of integers.