abstract class AbstractIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
AbstractIterator (for dependency
reasons).| Modifier and Type | Class and Description |
|---|---|
private static class |
AbstractIterator.State |
| Modifier and Type | Field and Description |
|---|---|
private T |
next |
private AbstractIterator.State |
state |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractIterator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
computeNext() |
protected T |
endOfData() |
boolean |
hasNext() |
T |
next() |
void |
remove() |
private boolean |
tryToComputeNext() |
private AbstractIterator.State state
@CheckForNull private T next
@CheckForNull protected abstract T computeNext()
@CheckForNull protected final T endOfData()
public final boolean hasNext()
hasNext in interface java.util.Iterator<T>private boolean tryToComputeNext()
public final void remove()
remove in interface java.util.Iterator<T>