/** Source code example for "A Practical Introduction to Data Structures and Algorithm Analysis, 3rd Edition (Java)" by Clifford A. Shaffer Copyright 2008-2011 by Clifford A. Shaffer */ /** General tree ADT */ interface GenTree { public void clear(); // Clear the tree public GTNode root(); // Return the root // Make the tree have a new root, give first child and sib public void newroot(E value, GTNode first, GTNode sib); public void newleftchild(E value); // Add left child }