@GwtCompatible 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
private T next
protected abstract T computeNext()
@Nullable 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>