Plexus v0.13.1

com.phoenixst.collections
Class TruePredicate

java.lang.Object
  extended by com.phoenixst.collections.TruePredicate
All Implemented Interfaces:
Serializable, org.apache.commons.collections.Predicate

public final class TruePredicate
extends Object
implements org.apache.commons.collections.Predicate, Serializable

A Predicate which always returns true.

This is mostly equivalent to the class of the same name in Jakarta Commons-Collections 3.0. This implementation fixes a serialization bug in the Jakarta version so that the singleton property is correctly preserved. No equivalent exists in version 2.1.

Since:
1.0
Version:
$Revision: 1.8 $
Author:
Ray A. Conner
See Also:
Serialized Form

Field Summary
static TruePredicate INSTANCE
          Singleton TruePredicate instance.
 
Method Summary
 boolean evaluate(Object object)
          Returns true.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final TruePredicate INSTANCE
Singleton TruePredicate instance.

Method Detail

evaluate

public boolean evaluate(Object object)
Returns true.

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

toString

public String toString()
Overrides:
toString in class Object

Plexus v0.13.1

See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.