Interface PeekableIntRankIterator
- All Superinterfaces:
Cloneable, IntIterator, PeekableIntIterator
PeekableIntIterator that calculates the next value rank during iteration
-
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a copy of the iterator.intLook at rank of the next value without advancingMethods inherited from interface IntIterator
hasNext, nextMethods inherited from interface PeekableIntIterator
advanceIfNeeded, peekNext
-
Method Details
-
peekNextRank
int peekNextRank()Look at rank of the next value without advancing- Returns:
- rank of next value
-
clone
PeekableIntRankIterator clone()Description copied from interface:PeekableIntIteratorCreates a copy of the iterator.- Specified by:
clonein interfaceIntIterator- Specified by:
clonein interfacePeekableIntIterator- Returns:
- a clone of the current iterator
-