com.phoenixst.collections

Class InstanceofPredicate

public final class InstanceofPredicate extends Object implements Predicate, Serializable

A Predicate which tests the evaluate( object ) argument for being an instance of a particular class.

This is mostly equivalent to the class of the same name in Jakarta Commons-Collections 3.0, except that it exposes the test object used in the constructor. The deserialization process in this version checks for null fields. No equivalent exists in version 2.1.

Since: 1.0

Version: $Revision: 1.10 $

Author: Ray A. Conner

Constructor Summary
InstanceofPredicate(Class testClass)
Creates a new InstanceofPredicate with the specified test class.
Method Summary
booleanequals(Object object)
booleanevaluate(Object object)
ClassgetTestClass()
Returns the test class being used by this InstanceofPredicate.
inthashCode()
StringtoString()

Constructor Detail

InstanceofPredicate

public InstanceofPredicate(Class testClass)
Creates a new InstanceofPredicate with the specified test class.

Method Detail

equals

public boolean equals(Object object)

evaluate

public boolean evaluate(Object object)

getTestClass

public Class getTestClass()
Returns the test class being used by this InstanceofPredicate.

hashCode

public int hashCode()

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.