T
- This stream's item typepublic class StreamAdapter<T> extends Object
Constructor and Description |
---|
StreamAdapter() |
Modifier and Type | Method and Description |
---|---|
boolean |
addItem(T item) |
void |
finishStream()
Caller should invoke this method, if the underlying stream should not expect
to receive any more items and can terminate at will.
|
Stream<T> |
stream() |
public void finishStream()
public boolean addItem(T item)
NullPointerException
- if the item is nullCopyright © 2016–2021. All rights reserved.