Class Node<T>


  • public class Node<T>
    extends java.lang.Object
    Date: 05/03/2017
    Author:
    Yaron Yamin
    • Constructor Detail

      • Node

        public Node​(T data,
                    Node<T> parent,
                    int depth)
    • Method Detail

      • getData

        public T getData()
      • getParent

        public Node<T> getParent()
      • getDepth

        public int getDepth()
      • hasSameAncestor

        public boolean hasSameAncestor()
      • hasSameAncestor

        public boolean hasSameAncestor​(T data)