com.phoenixst.collections
Class ContainsPredicate
java.lang.Object
com.phoenixst.collections.ContainsPredicate
- All Implemented Interfaces:
- Serializable, org.apache.commons.collections.Predicate
public final class ContainsPredicate
- extends Object
- implements org.apache.commons.collections.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
- See Also:
- Serialized Form
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
.
evaluate
public boolean evaluate(Object object)
- Specified by:
evaluate
in interface org.apache.commons.collections.Predicate
getCollection
public Collection getCollection()
- Returns the
Collection
being used by this
ContainsPredicate
.
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
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.