| JGL - The Generic Collection Library for Java |
All Packages Class Hierarchy This Package Previous Next Index
Class com.objectspace.jgl.functions.BinaryCompose
java.lang.Object
|
+----com.objectspace.jgl.functions.BinaryCompose
- public final class BinaryCompose
- extends Object
- implements BinaryFunction
BinaryCompose is a binary function object that returns the result of executing
three operations in a specific sequence.
- See Also:
- UnaryCompose
-
BinaryCompose(BinaryFunction, UnaryFunction, UnaryFunction)
- Construct myself with a single binary function object and two unary function objects.
-
execute(Object, Object)
- Perform my unary functions on each operand and then return the result of applying
my binary function object to these results.
BinaryCompose
public BinaryCompose(BinaryFunction function1,
UnaryFunction function2,
UnaryFunction function3)
- Construct myself with a single binary function object and two unary function objects.
- Parameters:
- function1 - The single binary function object.
- function2 - The first unary function object.
- function3 - The second unary function object.
execute
public Object execute(Object first,
Object second)
- Perform my unary functions on each operand and then return the result of applying
my binary function object to these results.
- Parameters:
- first - The first operand.
- second - The second operand.
- Returns:
- function1( function2( first ), function3( second ) )
All Packages Class Hierarchy This Package Previous Next Index