com.phoenixst.plexus.util

Class EqualsTraverserPredicate

public final class EqualsTraverserPredicate extends Object implements Predicate, Serializable

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

Since: 1.0

Version: $Revision: 1.7 $

Author: Ray A. Conner

Constructor Summary
EqualsTraverserPredicate(Graph.Edge testEdge)
Creates a new EqualsTraverserPredicate with the specified test Edge.
Method Summary
booleanequals(Object object)
booleanevaluate(Object object)
Returns true if the second element of the specified List is .equals() to the test Edge.
Graph.EdgegetTestEdge()
Returns the test Edge being used by this EqualsTraverserPredicate.
inthashCode()

Constructor Detail

EqualsTraverserPredicate

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

Method Detail

equals

public boolean equals(Object object)

evaluate

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

getTestEdge

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

hashCode

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