public abstract class BaseStreamIterator<R,T> extends Object implements StreamIterator<T>
Modifier and Type | Field and Description |
---|---|
protected StreamIterator<R> |
it |
protected T |
next |
Constructor and Description |
---|
BaseStreamIterator(StreamIterable<R> stream) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Idempotent method for cancellation.
|
boolean |
hasNext() |
StreamIterator<R> |
init(StreamIterable<R> stream) |
abstract void |
load()
Guaranteed preconditions are that it !
|
T |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nextNullChecked
forEachRemaining, remove
protected T next
protected StreamIterator<R> it
public BaseStreamIterator(StreamIterable<R> stream)
public StreamIterator<R> init(StreamIterable<R> stream)
public void dispose()
StreamIterator
dispose
in interface StreamIterator<T>
public abstract void load()
Copyright © 2018–2024. All rights reserved.