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

Constructor Index

 o BinaryCompose(BinaryFunction, UnaryFunction, UnaryFunction)
Construct myself with a single binary function object and two unary function objects.

Method Index

 o execute(Object, Object)
Perform my unary functions on each operand and then return the result of applying my binary function object to these results.

Constructors

 o 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.

Methods

 o 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