com.phoenixst.collections

Class FalsePredicate

public final class FalsePredicate extends Object implements Predicate, Serializable

A Predicate which always returns false.

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

Field Summary
static FalsePredicateINSTANCE
Singleton FalsePredicate instance.
Method Summary
booleanevaluate(Object object)
Returns false.
StringtoString()

Field Detail

INSTANCE

public static final FalsePredicate INSTANCE
Singleton FalsePredicate instance.

Method Detail

evaluate

public boolean evaluate(Object object)
Returns false.

toString

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