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
|
Method Summary |
Object |
clone()
Clone this object. |
boolean |
predicate(Object object)
Compute the a boolean function on object. |
And
public And(PredicateInterface lhs,
PredicateInterface rhs)
- Construct a predicate which computes the logical and
of two other predicates.
- Parameters:
lhs - the first predicaterhs - the second predicate
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