org.jutil.predicate
Class True

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

public class True
extends PrimitiveTotalPredicate

A special total predicate that always returns true for eval().


Field Summary
static java.lang.String CVS_REVISION
           
 
Constructor Summary
True()
           
 
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

True

public True()
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 == true;

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);