org.tigris.gef.util
Class PredicateTrue

java.lang.Object
  extended by org.tigris.gef.util.PredicateTrue
All Implemented Interfaces:
java.io.Serializable, Predicate

public class PredicateTrue
extends java.lang.Object
implements Predicate

A class that implements Predicate and always returns true. This is useful when you are calling a method that accepts a Predicate to filter or select objects, but you just want all the objects, or the first object.

See Also:
Serialized Form

Constructor Summary
PredicateTrue()
           
 
Method Summary
 boolean predicate(java.lang.Object obj)
           
static PredicateTrue theInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredicateTrue

public PredicateTrue()
Method Detail

predicate

public boolean predicate(java.lang.Object obj)
Specified by:
predicate in interface Predicate

theInstance

public static PredicateTrue theInstance()