-
- All Implemented Interfaces:
-
net.pwall.pipeline.BaseCoAcceptor,net.pwall.pipeline.CoAcceptor
public final class CoCounter<A extends Object> extends AbstractCoAcceptor<A, Int>
-
-
Method Summary
Modifier and Type Method Description IntegergetResult()UnitacceptObject(A value)Accept a value, after closedcheck and test for end of data.-
Methods inherited from class net.pwall.pipeline.BaseAbstractCoAcceptor
close, getClosed -
Methods inherited from class net.pwall.pipeline.BaseCoAcceptor
flush, getComplete -
Methods inherited from class net.pwall.pipeline.AbstractCoAcceptor
accept -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CoCounter
CoCounter(Integer count)
-
-
Method Detail
-
acceptObject
Unit acceptObject(A value)
Accept a value, after
closedcheck and test for end of data. Implementing classes must supply an implementation of this method.- Parameters:
value- the input value
-
-
-
-