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
-
Method Summary
-
Constructor Details
-
IdentityCons
IdentityCons()
-
-
Method Details
-
consume
Description copied from interface:Operators.Cons
Compute 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 elementx
and states
should not vary unless the observable state ofx
ors
varies.- Specified by:
consume
in interfaceOperators.Cons<X,
Y> - Parameters:
x
- an input element.y
- a pre-state.- Returns:
- a post-state.
-
toString
-