public class Counter<A> extends AbstractAcceptor<A,Integer>
| Constructor and Description |
|---|
Counter() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptObject(A value)
Accept a value, after
closed check and test for end of data. |
Integer |
getResult()
Get the result of the acceptor.
|
accept, acceptclose, isClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, isClosed, isComplete, safeCloseclosepublic void acceptObject(A value)
AbstractAcceptorclosed check and test for end of data. Implementing classes must supply an
implementation of this method.acceptObject in class AbstractAcceptor<A,Integer>value - the input valuepublic Integer getResult()
BaseAcceptorCopyright © 2025. All rights reserved.