edu.uci.ics.jung.graph.predicates
Class UserDatumEdgePredicate

java.lang.Object
  extended byedu.uci.ics.jung.graph.predicates.GPredicate
      extended byedu.uci.ics.jung.graph.predicates.EdgePredicate
          extended byedu.uci.ics.jung.graph.predicates.UserDatumEdgePredicate
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public class UserDatumEdgePredicate
extends EdgePredicate

A predicate that checks to see whether an edge's user data repository contains the constructor-specified (key,datum) pair. This predicate may be used as a constraint.


Field Summary
static java.lang.String message
           
 
Fields inherited from class edu.uci.ics.jung.graph.predicates.GPredicate
isInitializationPredicate
 
Constructor Summary
UserDatumEdgePredicate(java.lang.Object key, java.lang.Object datum)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Tests equality based on underlying objects
 boolean evaluateEdge(ArchetypeEdge e)
          Returns true if the datum stored by e with key value key (in the user data repository) is datum.
 java.lang.Object getDatum()
          Returns the user datum which partially defines this predicate.
 java.lang.Object getKey()
          Returns the user data key which partially defines this predicate.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class edu.uci.ics.jung.graph.predicates.EdgePredicate
evaluate
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

message

public static final java.lang.String message
See Also:
Constant Field Values
Constructor Detail

UserDatumEdgePredicate

public UserDatumEdgePredicate(java.lang.Object key,
                              java.lang.Object datum)
Method Detail

evaluateEdge

public boolean evaluateEdge(ArchetypeEdge e)
Returns true if the datum stored by e with key value key (in the user data repository) is datum.

Specified by:
evaluateEdge in class EdgePredicate
See Also:
UserData

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object o)
Tests equality based on underlying objects


hashCode

public int hashCode()

getKey

public java.lang.Object getKey()
Returns the user data key which partially defines this predicate.


getDatum

public java.lang.Object getDatum()
Returns the user datum which partially defines this predicate.