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

java.lang.Object
  extended by edu.uci.ics.jung.graph.predicates.GPredicate
      extended by edu.uci.ics.jung.graph.predicates.EdgePredicate
          extended by edu.uci.ics.jung.graph.predicates.NotInGraphEdgePredicate
All Implemented Interfaces:
UncopyablePredicate, Predicate

public class NotInGraphEdgePredicate
extends EdgePredicate
implements UncopyablePredicate

A predicate that tests to see whether a specified edge is currently part of a graph. May be used as a constraint. AbstractSparseGraph includes this edge constraint by default. Should not be used as a subset specification.

Author:
Joshua O'Madadhain

Field Summary
 
Fields inherited from class edu.uci.ics.jung.graph.predicates.GPredicate
isInitializationPredicate
 
Constructor Summary
NotInGraphEdgePredicate(ArchetypeGraph ag)
           
 
Method Summary
 boolean equals(Object o)
           
 boolean evaluateEdge(ArchetypeEdge e)
          Returns true if this edge is not currently part of graph ag.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class edu.uci.ics.jung.graph.predicates.EdgePredicate
evaluate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.commons.collections.Predicate
evaluate
 

Constructor Detail

NotInGraphEdgePredicate

public NotInGraphEdgePredicate(ArchetypeGraph ag)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

evaluateEdge

public boolean evaluateEdge(ArchetypeEdge e)
Returns true if this edge is not currently part of graph ag.

Specified by:
evaluateEdge in class EdgePredicate