edu.uci.ics.jung.graph.predicates
Class UserDatumEdgePredicate
java.lang.Object
edu.uci.ics.jung.graph.predicates.GPredicate
edu.uci.ics.jung.graph.predicates.EdgePredicate
edu.uci.ics.jung.graph.predicates.UserDatumEdgePredicate
- All Implemented Interfaces:
- 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.
message
public static final String message
- See Also:
- Constant Field Values
UserDatumEdgePredicate
public UserDatumEdgePredicate(Object key,
Object datum)
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 String toString()
equals
public boolean equals(Object o)
- Tests equality based on underlying objects
hashCode
public int hashCode()
getKey
public Object getKey()
- Returns the user data key which partially defines this predicate.
getDatum
public Object getDatum()
- Returns the user datum which partially defines this predicate.