Plexus v0.13.1

com.phoenixst.collections
Class ContainsPredicate

java.lang.Object
  extended by 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

Constructor Summary
ContainsPredicate(Collection collection)
          Creates a new ContainsPredicate.
 
Method Summary
 boolean equals(Object object)
           
 boolean evaluate(Object object)
           
 Collection getCollection()
          Returns the Collection being used by this ContainsPredicate.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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

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

Plexus v0.13.1

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.