Package eu.bandm.tools.util
Class Operators.IdentityFun<X>
java.lang.Object
eu.bandm.tools.util.Operators.IdentityFun<X>
- All Implemented Interfaces:
Operators.Fun<X,
X>
- Enclosing class:
- Operators
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
IdentityFun
IdentityFun()
-
-
Method Details
-
apply
Description copied from interface:Operators.Fun
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.- Specified by:
apply
in interfaceOperators.Fun<X,
X> - Parameters:
x
- an input element.- Returns:
- an output element.
-
toString
-