Package eu.bandm.tools.util
Interface Operators.Fun<X,Y>
- All Known Subinterfaces:
Operators.MultiFun<X,
Y>
- All Known Implementing Classes:
Operators.ComposedFun
,Operators.ConstantFun
,Operators.IdentityFun
,Operators.IfThenElseFun
,Operators.LazyConstantFun
,Operators.LiftedIFold
,Operators.LiftedMap
,Operators.LiftedMapMap
,Operators.LiftedMapSet
,OperatorsFusion.MultiComposedFun
- Enclosing class:
- Operators
public static interface Operators.Fun<X,Y>
Represents functions with input type
X
and output
type Y
.-
Method Summary
-
Method Details
-
apply
Compute an output element from an input element. Computation should be stateless and thread-safe, i.e.,f.apply(x)
for a given fixed function objectf
and input elementx
should not vary unless the observable state ofx
varies.- Parameters:
x
- an input element.- Returns:
- an output element.
-