Package eu.bandm.tools.util
Class Operators.IdentityCons<X,Y>
java.lang.Object
eu.bandm.tools.util.Operators.IdentityCons<X,Y>
- All Implemented Interfaces:
Operators.Cons<X,Y>
- Enclosing class:
- Operators
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IdentityCons
IdentityCons()
-
-
Method Details
-
consume
Description copied from interface:Operators.ConsCompute a post-state from an input element and a pre-state. Computation should be stateless and thread-safe, i.e.,f.consume(x, s)for a given fixed function objectf, input elementxand statesshould not vary unless the observable state ofxorsvaries.- Specified by:
consumein interfaceOperators.Cons<X,Y> - Parameters:
x- an input element.y- a pre-state.- Returns:
- a post-state.
-
toString
-