/** * Initializes a {@link Node node} with the given data and children. * * @param data * - the node's data * @param children * - the node's children */ public Node(T data, List<Node<T>> children) { this(data); addChildren(children); }
/** * Initializes a {@link Node node} with the given data and children. * * @param data * - the node's data * @param children * - the node's children */ public Node(T data, List<Node<T>> children) { this(data); addChildren(children); }