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

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

public class NotInGraphVertexPredicate
extends VertexPredicate

A predicate that tests to see whether a specified vertex is currently part of a graph. May be used as a constraint. AbstractSparseGraph includes this vertex 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
NotInGraphVertexPredicate(ArchetypeGraph ag)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean evaluateVertex(ArchetypeVertex av)
          Returns true if this vertex is not currently part of graph ag.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class edu.uci.ics.jung.graph.predicates.VertexPredicate
evaluate
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotInGraphVertexPredicate

public NotInGraphVertexPredicate(ArchetypeGraph ag)
Method Detail

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

evaluateVertex

public boolean evaluateVertex(ArchetypeVertex av)
Returns true if this vertex is not currently part of graph ag.

Specified by:
evaluateVertex in class VertexPredicate