JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.alsUtility
Class Or

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

public class Or
extends java.lang.Object
implements Predicate

implements logical or

See Also:
Serialized Form

Field Summary
protected  Predicate left
           
protected  Predicate right
           
 
Constructor Summary
Or(Predicate p1, Predicate p2)
          predicates to implement the logical or 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

Or

public Or(Predicate p1,
          Predicate p2)
predicates to implement the logical or 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
Returns:
left.execute(object) || right.execute(object)

JavaGenes, NASA Ames. Written largely by Al Globus