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
-
FALSE
-
-
TRUE
-
-
ConstantPredicate(boolean)
- Construct myself to always return a specific value when invoked.
-
execute(Object)
- Return my value.
-
execute(Object, Object)
- Return my value.
TRUE
public static ConstantPredicate TRUE
FALSE
public static ConstantPredicate FALSE
ConstantPredicate
public ConstantPredicate(boolean value)
- Construct myself to always return a specific value when invoked.
- Parameters:
- value - The value to return.
execute
public boolean execute(Object object)
- Return my value.
- Parameters:
- object - Ignored.
- Returns:
- The value with which I was constructed.
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