/** * List all children of this node. */ public List<Node<E>> getChildren() { List<Node<E>> result = new ArrayList<Node<E>>(); for(Node<E> child = firstChild(); child != null; child = child.siblingAfter) { result.add(child); } return result; }
/** * List all children of this node. */ public List<Node<E>> getChildren() { List<Node<E>> result = new ArrayList<Node<E>>(); for(Node<E> child = firstChild(); child != null; child = child.siblingAfter) { result.add(child); } return result; }
/** * List all children of this node. */ public List<Node<E>> getChildren() { List<Node<E>> result = new ArrayList<Node<E>>(); for(Node<E> child = firstChild(); child != null; child = child.siblingAfter) { result.add(child); } return result; }