Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.ashwood.predicate
Class ConstPredicate  view ConstPredicate download ConstPredicate.java

java.lang.Object
  extended byorg.objectstyle.ashwood.predicate.ConstPredicate
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public class ConstPredicate
extends java.lang.Object
implements org.apache.commons.collections.Predicate


Field Summary
static ConstPredicate FALSE
           
private  boolean returnValue
           
static ConstPredicate TRUE
           
 
Constructor Summary
ConstPredicate(boolean returnValue)
           
 
Method Summary
 boolean evaluate(java.lang.Object parameter)
          Returns true if the input object matches this predicate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRUE

public static ConstPredicate TRUE

FALSE

public static ConstPredicate FALSE

returnValue

private boolean returnValue
Constructor Detail

ConstPredicate

public ConstPredicate(boolean returnValue)
Method Detail

evaluate

public boolean evaluate(java.lang.Object parameter)
Description copied from interface: org.apache.commons.collections.Predicate
Returns true if the input object matches this predicate.

Specified by:
evaluate in interface org.apache.commons.collections.Predicate