public class IntCounter extends AbstractIntAcceptor<Integer>
| Constructor and Description |
|---|
IntCounter() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptInt(int value)
Accept an
int, 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, waitaccept, accept, accept, accept, accept, accept, accept, accept, acceptflush, isClosed, isComplete, safeClosecloseandThenpublic void acceptInt(int value)
AbstractIntAcceptorint, after closed check and test for end of data. Implementing classes must supply an
implementation of this method.acceptInt in class AbstractIntAcceptor<Integer>value - the input valuepublic Integer getResult()
BaseAcceptorCopyright © 2025. All rights reserved.