com.sas.util
Class Or
com.sas.util.Or
- All Implemented Interfaces:
- com.sas.PublicClonable, com.sas.util.PredicateInterface, java.io.Serializable, java.lang.Cloneable
public class Or
- implements com.sas.util.PredicateInterface, java.io.Serializable, com.sas.PublicClonable
The Or
class combines two PredicateInterface
objects
using a short circuit logical or ( ||
) operation.
- See Also:
Or
,
Not
,
XOr
,
Serialized Form
Constructor Summary |
Or(com.sas.util.PredicateInterface lhs,
com.sas.util.PredicateInterface rhs)
|
Or
public Or(com.sas.util.PredicateInterface lhs,
com.sas.util.PredicateInterface rhs)
predicate
public boolean predicate(java.lang.Object object)
- Compute the a boolean function on object.
- Specified by:
predicate
in interface com.sas.util.PredicateInterface
- Returns:
- the value
lhs.predicate(object) || rhs.predicate(object);
using the predicates passed to the constructor
.
clone
public java.lang.Object clone()
- Clone this object.
- Specified by:
clone
in interface com.sas.PublicClonable
- Overrides:
clone
in class java.lang.Object
- Returns:
- a clone of this object
Copyright © 2009 SAS Institute Inc. All Rights Reserved.