org.testng.internal
Class Graph.Node<T>

java.lang.Object
  extended by org.testng.internal.Graph.Node<T>
Enclosing class:
Graph<T>

public static class Graph.Node<T>
extends java.lang.Object


Constructor Summary
Graph.Node(T tm)
           
 
Method Summary
 void addNeighbor(Graph.Node<T> neighbor)
           
 void addPredecessor(T tm)
           
 Graph.Node<T> clone()
           
 java.util.Set<Graph.Node<T>> getNeighbors()
           
 T getObject()
           
 java.util.Map<T,T> getPredecessors()
           
 boolean hasPredecessor(T m)
           
 boolean hasPredecessors()
           
 boolean removePredecessor(T o)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Graph.Node

public Graph.Node(T tm)
Method Detail

addNeighbor

public void addNeighbor(Graph.Node<T> neighbor)

getNeighbors

public java.util.Set<Graph.Node<T>> getNeighbors()

clone

public Graph.Node<T> clone()
Overrides:
clone in class java.lang.Object

getObject

public T getObject()

getPredecessors

public java.util.Map<T,T> getPredecessors()

removePredecessor

public boolean removePredecessor(T o)
Returns:
true if this predecessor was found and removed

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

addPredecessor

public void addPredecessor(T tm)

hasPredecessors

public boolean hasPredecessors()

hasPredecessor

public boolean hasPredecessor(T m)


Copyright © 2010. All Rights Reserved.