com.phoenixst.collections

Class ContainsPredicate

public final class ContainsPredicate extends Object implements Predicate, Serializable

A Predicate which tests whether an object is an element of a Collection.

Since: 1.0

Version: $Revision: 1.2 $

Author: Ray A. Conner

Constructor Summary
ContainsPredicate(Collection collection)
Creates a new ContainsPredicate.
Method Summary
booleanequals(Object object)
booleanevaluate(Object object)
CollectiongetCollection()
Returns the Collection being used by this ContainsPredicate.
inthashCode()
StringtoString()

Constructor Detail

ContainsPredicate

public ContainsPredicate(Collection collection)
Creates a new ContainsPredicate. Note: This class does not copy the constructor argument, so be careful not to alter it after creating this ContainsPredicate.

Method Detail

equals

public boolean equals(Object object)

evaluate

public boolean evaluate(Object object)

getCollection

public Collection getCollection()
Returns the Collection being used by this ContainsPredicate.

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.