org.argouml.kernel
Class PredOR

java.lang.Object
  |
  +--org.argouml.kernel.PredOR
All Implemented Interfaces:
org.tigris.gef.util.Predicate, java.io.Serializable

public class PredOR
extends java.lang.Object
implements org.tigris.gef.util.Predicate

Predicate to provide logical OR between two other predicates.

See Also:
Serialized Form

Field Summary
protected  org.tigris.gef.util.Predicate _predicate1
           
protected  org.tigris.gef.util.Predicate _predicate2
           
 
Constructor Summary
PredOR(org.tigris.gef.util.Predicate predicate1, org.tigris.gef.util.Predicate predicate2)
           
 
Method Summary
 boolean predicate(java.lang.Object obj)
          Returns true if at least one of its internal Predicates return true;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_predicate1

protected org.tigris.gef.util.Predicate _predicate1

_predicate2

protected org.tigris.gef.util.Predicate _predicate2
Constructor Detail

PredOR

public PredOR(org.tigris.gef.util.Predicate predicate1,
              org.tigris.gef.util.Predicate predicate2)
Method Detail

predicate

public boolean predicate(java.lang.Object obj)
Returns true if at least one of its internal Predicates return true;
Specified by:
predicate in interface org.tigris.gef.util.Predicate
Parameters:
Object - to test.
Returns:
Returns true if at least one of its internal Predicates return true.


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook