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.


Constructor Index

 o UnaryPredicateFunction(UnaryPredicate)
Construct myself with a unary predicate object.

Method Index

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

Constructors

 o UnaryPredicateFunction
 public UnaryPredicateFunction(UnaryPredicate predicate)
Construct myself with a unary predicate object.

Parameters:
predicate - The unary predicate object.

Methods

 o 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