All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.objectspace.jgl.predicates.BinaryOr

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

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

See Also:
UnaryOr

Constructor Index

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

Method Index

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

Constructors

 o BinaryOr
 public BinaryOr(BinaryPredicate p1,
                 BinaryPredicate 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 BinaryOr
 public BinaryOr(BinaryPredicate p[])
Construct myself to use all given predicates for testing.

Parameters:
p - An array or BinaryPredicates.

Methods

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

Parameters:
first - The first operand.
second - The second operand.

All Packages  Class Hierarchy  This Package  Previous  Next  Index