Package eu.bandm.tools.util
Class Operators.ComposedFun<X,Y,Z>
java.lang.Object
eu.bandm.tools.util.Operators.ComposedFun<X,Y,Z>
- All Implemented Interfaces:
Operators.Fun<X,
Z>
- Enclosing class:
- Operators
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Operators.Fun<? super X,
? extends Y> protected final Operators.Fun<? super Y,
? extends Z> -
Constructor Summary
ConstructorDescriptionComposedFun
(Operators.Fun<? super X, ? extends Y> first, Operators.Fun<? super Y, ? extends Z> second) -
Method Summary
-
Field Details
-
first
-
second
-
-
Constructor Details
-
ComposedFun
public ComposedFun(Operators.Fun<? super X, ? extends Y> first, Operators.Fun<? super Y, ? extends Z> second)
-
-
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:
x
- an input element.- Returns:
- an output element.
-
toString
-