A - the accepted (input) value typeR - the result typepublic abstract class AbstractAcceptor<A,R> extends BaseAbstractAcceptor<R> implements Acceptor<A,R>
Acceptor.| Constructor and Description |
|---|
AbstractAcceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(A value)
Accept an object.
|
abstract void |
acceptObject(A value)
Accept a value, after
closed check and test for end of data. |
close, getResult, isClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, getResult, isClosed, isCompleteclosepublic void accept(A value) throws Exception
null is
used to indicate end of data; if that is not the case this method must be overridden or an alternative
implementation of Acceptor used.Copyright © 2020. All rights reserved.