Class Node<T>

java.lang.Object
nl.pim16aap2.animatedarchitecture.core.data.graph.Node<T>
Type Parameters:
T - The type of data stored in this node.

public final class Node<T> extends Object
Represents a node in a graph.
  • Method Details

    • hasParents

      public boolean hasParents()
      Checks if this node has any parents.
      Returns:
      True if this node has 1 or more parents.
    • hasChildren

      public boolean hasChildren()
      Checks if this node has any children.
      Returns:
      True if this node has 1 or more children.
    • getAllChildren

      public Set<Node<T>> getAllChildren()
      Recursively gets all the children of this node.
      Returns:
      All the children of this node as well as the all the children of each of those children etc.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getObj

      public T getObj()