JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.alsUtility
Class And

java.lang.Object
  extended bygov.nasa.alsUtility.And
All Implemented Interfaces:
Predicate, java.io.Serializable

public class And
extends java.lang.Object
implements Predicate

logical and

See Also:
Serialized Form

Field Summary
protected  Predicate left
           
protected  Predicate right
           
 
Constructor Summary
And(Predicate p1, Predicate p2)
          arguments are the predicates we want the logical and of
 
Method Summary
 boolean execute(java.lang.Object object)
          executes this predicate on object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

left

protected Predicate left

right

protected Predicate right
Constructor Detail

And

public And(Predicate p1,
           Predicate p2)
arguments are the predicates we want the logical and of

Method Detail

execute

public boolean execute(java.lang.Object object)
Description copied from interface: Predicate
executes this predicate on object

Specified by:
execute in interface Predicate
Parameters:
object - Object on which to find the logical and of the left and right predicates

JavaGenes, NASA Ames. Written largely by Al Globus