public class Fold<A> extends AbstractAcceptor<A,A>
| Constructor and Description |
|---|
Fold(A initialValue,
BiFunction<? super A,? super A,? extends A> function) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptObject(A value)
Accept a value, after
closed check and test for end of data. |
A |
getResult()
Get the result of the acceptor.
|
accept, acceptclose, isClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, isClosed, isComplete, safeCloseclosepublic Fold(A initialValue, BiFunction<? super A,? super A,? extends A> function)
public 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,A>value - the input valuepublic A getResult()
BaseAcceptorCopyright © 2025. All rights reserved.