org.testng.internal
Class Graph.Node<T>
java.lang.Object
org.testng.internal.Graph.Node<T>
- Enclosing class:
- Graph<T>
public static class Graph.Node<T>
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Graph.Node
public Graph.Node(T tm)
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.