com.sas.util
Class Not

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

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

The Not class negates the result of another PredicateInterface object

See Also:
And, Or, XOr, Serialized Form

Constructor Summary
Not(com.sas.util.PredicateInterface pred)
          Construct a predicate which computes the logical not of another predicate.
 
Method Summary
 java.lang.Object clone()
          Clone this Not object.
 boolean predicate(java.lang.Object object)
          Compute the a boolean function on object.
 

Constructor Detail

Not

public Not(com.sas.util.PredicateInterface pred)
Construct a predicate which computes the logical not of another predicate.

Parameters:
pred - another predicate
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 value ! pred.predicate(object) where pred is the predicate passed to the constructor.

clone

public java.lang.Object clone()
Clone this Not 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.