public final class ContainsPredicate extends Object implements org.apache.commons.collections.Predicate, Serializable
Predicate
which tests whether an object is an
element of a Collection
.Constructor and Description |
---|
ContainsPredicate(Collection collection)
Creates a new
ContainsPredicate . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
boolean |
evaluate(Object object) |
Collection |
getCollection()
Returns the
Collection being used by this
ContainsPredicate . |
int |
hashCode() |
String |
toString() |
public ContainsPredicate(Collection collection)
ContainsPredicate
.
Note: This class does not copy the
constructor argument, so be careful not to alter it after
creating this ContainsPredicate
.public boolean evaluate(Object object)
evaluate
in interface org.apache.commons.collections.Predicate
public Collection getCollection()
Collection
being used by this
ContainsPredicate
.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.