Esempio n. 1
0
        public override RBBranch <T> GetNode(T t)
        {
            int compareResult = t.CompareTo(value);

            if (compareResult == 0)
            {
                return(this);
            }
            else if (compareResult > 0)
            {
                return(right.GetNode(t));
            }
            else
            {
                return(left.GetNode(t));
            }
        }
Esempio n. 2
0
 RBBranch <T> GetNode(T value)
 {
     return(root.GetNode(value));
 }