All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.objectspace.jgl.predicates.BinaryAnd

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

public final class BinaryAnd
extends Object
implements BinaryPredicate
BinaryAnd is a unary predicate that returns true if the result of executing all unary predicates on given operands is true.

See Also:
UnaryAnd

Constructor Index

 o BinaryAnd(BinaryPredicate, BinaryPredicate)
Construct myself with two unary predicate objects.
 o BinaryAnd(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 all predicates return true.

Constructors

 o BinaryAnd
 public BinaryAnd(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 BinaryAnd
 public BinaryAnd(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 all predicates return true.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index