All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.objectspace.jgl.predicates.UnaryOr

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

public final class UnaryOr
extends Object
implements UnaryPredicate
UnaryOr is a unary predicate that returns true if the result of executing any unary predicate on its operands is true.

See Also:
BinaryOr

Constructor Index

 o UnaryOr(UnaryPredicate, UnaryPredicate)
Construct myself with two unary predicate objects.
 o UnaryOr(UnaryPredicate[])
Construct myself to use all given predicates for testing.

Method Index

 o execute(Object)
Perform my unary predicates on the operand and return true if any predicate returns true.

Constructors

 o UnaryOr
 public UnaryOr(UnaryPredicate p1,
                UnaryPredicate p2)
Construct myself with two unary predicate objects.

Parameters:
p1 - A unary predicate object, which should be a predicate.
p2 - A unary predicate object, which should be a predicate.
 o UnaryOr
 public UnaryOr(UnaryPredicate p[])
Construct myself to use all given predicates for testing.

Parameters:
p - An array or UnaryPredicates.

Methods

 o execute
 public boolean execute(Object object)
Perform my unary predicates on the operand and return true if any predicate returns true.

Parameters:
object - The operand.

All Packages  Class Hierarchy  This Package  Previous  Next  Index