|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LazyIntIterator
A lazy iterator over the integers.
An instance of this class represent a (skippable) iterator over the integers. The iterator is exhausted when an implementation-dependent special marker is returned. This fully lazy architecture halves the number of method calls w.r.t. Java's eager iterators.
| Method Summary | |
|---|---|
int |
nextInt()
The next integer returned by this iterator, or the special marker if this iterator is exhausted. |
int |
skip(int n)
Skips a given number of elements. |
| Method Detail |
|---|
int nextInt()
int skip(int n)
n - the number of elements to skip.
n if this iterator is exhausted).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||