- All Implemented Interfaces:
Iterator<T>
public abstract class AbstractIterator<T>
extends Object
implements Iterator<T>
-
Nested Class Summary
Nested Classes
-
-
Constructor Summary
Constructors
-
Method Summary
protected final void
final boolean
protected abstract @Nullable T
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Details
-
AbstractIterator
public AbstractIterator()
-
Method Details
-
hasNext
public final boolean hasNext()
- Specified by:
hasNext
in interface Iterator<T>
-
next
public final @Nullable T next()
- Specified by:
next
in interface Iterator<T>
-
tryComputeNext
protected abstract @Nullable T tryComputeNext()
-
complete
protected final void complete()