StreamIterator<T>, Closeable, AutoCloseable, Iterator<T>public class StreamIteratorPipe<T> extends AbstractStreamIterator<T> implements Closeable
| Constructor | Description |
|---|---|
StreamIteratorPipe() |
|
StreamIteratorPipe(int capacity) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
protected T |
findNext() |
This method looks for the next entry to be returned.
|
void |
push(T element) |
hasNext, next, peekforEachRemaining, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitempty, filter, flatMap, map, of, spliterator, streampublic StreamIteratorPipe()
public StreamIteratorPipe(int capacity)
public void push(T element) throws InterruptedException
InterruptedExceptionprotected T findNext()
AbstractStreamIteratornull is returned.findNext in class AbstractStreamIterator<T>null is returned in case no more
entries are available.public void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2017–2018 PureSol Technologies. All rights reserved.