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... values)
Accept a sequence of values, supplied as
vararg parameters. |
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, isClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, getResult, isClosed, isComplete, safeCloseclosepublic void accept(A value)
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.public abstract void acceptObject(A value)
closed check and test for end of data. Implementing classes must supply an
implementation of this method.value - the input value@SafeVarargs public final void accept(A... values)
vararg parameters.values - the input valuesCopyright © 2025. All rights reserved.