E - the emitted (downstream) value typeR - the result typepublic abstract class AbstractIntObjectPipeline<E,R> extends AbstractIntAcceptor<R> implements IntObjectPipeline<E,R>
IntObjectPipeline implementations.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractIntObjectPipeline(Acceptor<? super E,? extends R> downstream)
Construct an
AbstractIntObjectPipeline with the given downstream Acceptor. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the pipeline.
|
void |
emit(E value)
Emit a value to the downstream
Acceptor. |
void |
flush()
Propagate the flush operation to the downstream acceptor.
|
R |
getResult()
Get the result object (defaults to the result of the downstream acceptor).
|
boolean |
isComplete()
Return
true if all sequences in the input are complete, that is, the input is not in the middle of a
sequence requiring more data. |
accept, acceptIntisClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, accept, accept, accept, acceptisClosedprotected AbstractIntObjectPipeline(Acceptor<? super E,? extends R> downstream)
AbstractIntObjectPipeline with the given downstream Acceptor.downstream - the IntAcceptorpublic void close()
throws Exception
close in interface AutoCloseableclose in class BaseAbstractAcceptor<R>Exception - if the acceptor is not in the "complete" statepublic void emit(E value) throws Exception
Acceptor.emit in interface IntObjectPipeline<E,R>value - the value to be forwardedException - if thrown by a close() methodpublic R getResult()
getResult in interface BaseAcceptor<R>getResult in class BaseAbstractAcceptor<R>public boolean isComplete()
true if all sequences in the input are complete, that is, the input is not in the middle of a
sequence requiring more data. The default implementation tests whether the downstream acceptor is complete.isComplete in interface BaseAcceptor<R>true if the input is in the "complete" statepublic void flush()
flush in interface BaseAcceptor<R>Copyright © 2020. All rights reserved.