All Packages Class Hierarchy This Package Previous Next Index
Class COM.objectspace.jgl.functions.UnaryPredicateFunction
java.lang.Object
|
+----COM.objectspace.jgl.functions.UnaryPredicateFunction
- public final class UnaryPredicateFunction
- extends Object
- implements UnaryFunction
UnaryPredicateFunction allows you to use a unary predicate object as a unary
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.
-
UnaryPredicateFunction(UnaryPredicate)
- Construct myself with a unary predicate object.
-
execute(Object)
- Perform my unary predicate on the operand and return the boolean result as an object.
UnaryPredicateFunction
public UnaryPredicateFunction(UnaryPredicate predicate)
- Construct myself with a unary predicate object.
- Parameters:
- predicate - The unary predicate object.
execute
public Object execute(Object object)
- Perform my unary predicate on the operand and return the boolean result as an object.
- Parameters:
- object - The operand.
- Returns:
- predicate( object ) converted into an object.
All Packages Class Hierarchy This Package Previous Next Index