All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.objectspace.jgl.functions.BinaryPredicateFunction

java.lang.Object
   |
   +----COM.objectspace.jgl.functions.BinaryPredicateFunction

public final class BinaryPredicateFunction
extends Object
implements BinaryFunction
BinaryPredicateFunction allows you to use a binary predicate object as a binary function object. Because a function object has to return an object, a true return value is converted into Boolean.TRUE, and a false return value is converted into Boolean.FALSE.


Constructor Index

 o BinaryPredicateFunction(BinaryPredicate)
Construct myself with a binary predicate object.

Method Index

 o execute(Object, Object)
Perform my binary predicate on the operand and return the boolean result as an object.

Constructors

 o BinaryPredicateFunction
 public BinaryPredicateFunction(BinaryPredicate predicate)
Construct myself with a binary predicate object.

Parameters:
predicate - The binary predicate object.

Methods

 o execute
 public Object execute(Object first,
                       Object second)
Perform my binary predicate on the operand and return the boolean result as an object.

Parameters:
first - The first operand.
second - The second operand.
Returns:
predicate( first, second ) converted into an object.

All Packages  Class Hierarchy  This Package  Previous  Next  Index