All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.objectspace.jgl.predicates.BinaryComposePredicate

java.lang.Object
   |
   +----COM.objectspace.jgl.predicates.BinaryComposePredicate

public final class BinaryComposePredicate
extends Object
implements BinaryPredicate
BinaryComposePredicate is a binary predicate object that returns the result of executing three operations in a specific sequence.

See Also:
UnaryComposePredicate

Constructor Index

 o BinaryComposePredicate(BinaryPredicate, UnaryFunction, UnaryFunction)
Construct myself with a single binary predicate 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 predicate object to these results.

Constructors

 o BinaryComposePredicate
 public BinaryComposePredicate(BinaryPredicate predicate,
                               UnaryFunction function1,
                               UnaryFunction function2)
Construct myself with a single binary predicate object and two unary function objects.

Parameters:
predicate - The single binary predicate object.
function1 - The first unary function object.
function2 - The second unary function object.

Methods

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

Parameters:
first - The first operand.
second - The second operand.
Returns:
predicate( function1( first ), function2( second ) )

All Packages  Class Hierarchy  This Package  Previous  Next  Index