| JGL - The Generic Collection Library for Java |
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.
-
BinaryPredicateFunction(BinaryPredicate)
- Construct myself with a binary predicate object.
-
execute(Object, Object)
- Perform my binary predicate on the operand and return the boolean result as an object.
BinaryPredicateFunction
public BinaryPredicateFunction(BinaryPredicate predicate)
- Construct myself with a binary predicate object.
- Parameters:
- predicate - The binary predicate object.
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