Package com.aoindustries.util.tree
Interface Node<E>
-
- All Known Implementing Classes:
NodeCopy
public interface Node<E>An abstract structure for trees. Each tree may have multiple roots.- Author:
- AO Industries, Inc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Node<E>>getChildren()Gets the list of direct children of this node.EgetValue()Gets the value contained in this node.
-
-
-
Method Detail
-
getChildren
List<Node<E>> getChildren() throws IOException, SQLException
Gets the list of direct children of this node. If this node cannot have children then returnnull. If this node can have children but there are none, return an empty List.- Throws:
IOExceptionSQLException
-
getValue
E getValue()
Gets the value contained in this node. Comparisons of this value will be performed using the equals method.
-
-