com.sas.util
Class And

java.lang.Object
  |
  +--com.sas.util.And
All Implemented Interfaces:
PredicateInterface, PublicClonable,

public class And
extends java.lang.Object
implements PredicateInterface, java.io.Serializable, PublicClonable

The And class combines two PredicateInterface objects using a short circuit logical and ( && ) operation.

See Also:
Or, Not, XOr, Serialized Form

Constructor Summary
And(PredicateInterface lhs, PredicateInterface rhs)
          Construct a predicate which computes the logical and of two other predicates.
 
Method Summary
 Object clone()
          Clone this object.
 boolean predicate(Object object)
          Compute the a boolean function on object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

And

public And(PredicateInterface lhs,
           PredicateInterface rhs)
Construct a predicate which computes the logical and of two other predicates.
Parameters:
lhs - the first predicate
rhs - the second predicate
Method Detail

predicate

public boolean predicate(Object object)
Compute the a boolean function on object.
Specified by:
predicate in interface PredicateInterface
Returns:
the value lhs.predicate(object) && rhs.predicate(object); using the predicates passed to the constructor.

clone

public Object clone()
Clone this object.
Specified by:
clone in interface PublicClonable
Overrides:
clone in class Object
Returns:
a clone of this object




Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Thu, 16 Feb 2006 02:30:19