Plexus v0.13.1

com.phoenixst.plexus.util
Class EqualsTraverserPredicate

java.lang.Object
  extended by com.phoenixst.plexus.util.EqualsTraverserPredicate
All Implemented Interfaces:
Serializable, org.apache.commons.collections.Predicate

public final class EqualsTraverserPredicate
extends Object
implements org.apache.commons.collections.Predicate, Serializable

A Predicate which simply tests for equality with a specified Graph.Edge.

Since:
1.0
Version:
$Revision: 1.7 $
Author:
Ray A. Conner
See Also:
Serialized Form

Constructor Summary
EqualsTraverserPredicate(Graph.Edge testEdge)
          Creates a new EqualsTraverserPredicate with the specified test Edge.
 
Method Summary
 boolean equals(Object object)
           
 boolean evaluate(Object object)
          Returns true if the second element of the specified List is .equals() to the test Edge.
 Graph.Edge getTestEdge()
          Returns the test Edge being used by this EqualsTraverserPredicate.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EqualsTraverserPredicate

public EqualsTraverserPredicate(Graph.Edge testEdge)
Creates a new EqualsTraverserPredicate with the specified test Edge.

Method Detail

evaluate

public boolean evaluate(Object object)
Returns true if the second element of the specified List is .equals() to the test Edge.

Specified by:
evaluate in interface org.apache.commons.collections.Predicate

getTestEdge

public Graph.Edge getTestEdge()
Returns the test Edge being used by this EqualsTraverserPredicate.


equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode 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.