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, peek
forEachRemaining, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
empty, filter, flatMap, map, of, spliterator, stream
public StreamIteratorPipe()
public StreamIteratorPipe(int capacity)
public void push(T element) throws InterruptedException
InterruptedException
protected T findNext()
AbstractStreamIterator
null
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 AutoCloseable
close
in interface Closeable
IOException
Copyright © 2017–2018 PureSol Technologies. All rights reserved.