Package eu.bandm.tools.util
Class Operators.LiftedMap<X,Y>
java.lang.Object
eu.bandm.tools.util.Operators.LiftedFun<X,Y>
eu.bandm.tools.util.Operators.LiftedMap<X,Y>
- All Implemented Interfaces:
Operators.Fun<Collection<X>,
Collection<Y>>
- Enclosing class:
- Operators
static class Operators.LiftedMap<X,Y>
extends Operators.LiftedFun<X,Y>
implements Operators.Fun<Collection<X>,Collection<Y>>
-
Field Summary
Fields inherited from class eu.bandm.tools.util.Operators.LiftedFun
fun
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(Collection<X> elems) Compute an output element from an input element.getName()
Methods inherited from class eu.bandm.tools.util.Operators.LiftedFun
toString
-
Constructor Details
-
LiftedMap
-
-
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,
Y> - Parameters:
elems
- an input element.- Returns:
- an output element.
-
getName
- Specified by:
getName
in classOperators.LiftedFun<X,
Y>
-