All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.objectspace.jgl.predicates.ConstantPredicate

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

public class ConstantPredicate
extends Object
implements UnaryPredicate, BinaryPredicate
ConstantPredicate is a predicate object that will always return the same value regardless of the parameters it is passed.

See Also:
UnaryPredicate, BinaryPredicate

Variable Index

 o FALSE
 o TRUE

Constructor Index

 o ConstantPredicate(boolean)
Construct myself to always return a specific value when invoked.

Method Index

 o execute(Object)
Return my value.
 o execute(Object, Object)
Return my value.

Variables

 o TRUE
 public static ConstantPredicate TRUE
 o FALSE
 public static ConstantPredicate FALSE

Constructors

 o ConstantPredicate
 public ConstantPredicate(boolean value)
Construct myself to always return a specific value when invoked.

Parameters:
value - The value to return.

Methods

 o execute
 public boolean execute(Object object)
Return my value.

Parameters:
object - Ignored.
Returns:
The value with which I was constructed.
 o execute
 public boolean execute(Object first,
                        Object second)
Return my value.

Parameters:
first - Ignored.
second - Ignored.
Returns:
The value with which I was constructed.

All Packages  Class Hierarchy  This Package  Previous  Next  Index