org.jutil.predicate
Class NotNull

java.lang.Object
  |
  +--org.jutil.predicate.AbstractPredicate
        |
        +--org.jutil.predicate.TotalPredicate
              |
              +--org.jutil.predicate.PrimitiveTotalPredicate
                    |
                    +--org.jutil.predicate.NotNull
All Implemented Interfaces:
CollectionOperator, Predicate

public class NotNull
extends PrimitiveTotalPredicate

A special total predicate that checks whether or not objects are different from null.


Field Summary
static java.lang.String CVS_REVISION
           
 
Constructor Summary
NotNull()
           
 
Method Summary
 boolean eval(java.lang.Object object)
          Evaluate this Predicate for the given object.
 
Methods inherited from class org.jutil.predicate.PrimitiveTotalPredicate
getSubPredicates, nbSubPredicates
 
Methods inherited from class org.jutil.predicate.TotalPredicate
count, exists, filter, forall, isValidElement
 
Methods inherited from class org.jutil.predicate.AbstractPredicate
equals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CVS_REVISION

public static final java.lang.String CVS_REVISION
Constructor Detail

NotNull

public NotNull()
Method Detail

eval

public boolean eval(java.lang.Object object)
Description copied from interface: Predicate
Evaluate this Predicate for the given object.

Specifications:
     also
public behavior
ensures \result == (object == null);

Specifications inherited from overridden method in class TotalPredicate:
     also
public behavior
signals (Exception) false;
Specifications inherited from overridden method in interface Predicate:
public behavior
ensures \result == true|\result == false;
signals (Exception) !isValidElement(object);