com.sas.util
Class XOr

com.sas.util.XOr
All Implemented Interfaces:
com.sas.PublicClonable, com.sas.util.PredicateInterface, java.io.Serializable, java.lang.Cloneable

public class XOr
implements com.sas.util.PredicateInterface, java.io.Serializable, com.sas.PublicClonable

The XOr class combines two PredicateInterface objects using a short circuit logical exclusive OR ( ^ ) operation.

See Also:
And, Or, Not, Serialized Form

Constructor Summary
XOr(com.sas.util.PredicateInterface lhs, com.sas.util.PredicateInterface rhs)
           
 
Method Summary
 java.lang.Object clone()
          Clone this object.
 boolean predicate(java.lang.Object object)
          Compute the a boolean function on object.
 

Constructor Detail

XOr

public XOr(com.sas.util.PredicateInterface lhs,
           com.sas.util.PredicateInterface rhs)
Method Detail

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 exclusive or of lhs.predicate(object) and 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.