com.github.rutledgepaulv.qbuilders.nodes.LogicalNode Maven / Gradle / Ivy
package com.github.rutledgepaulv.qbuilders.nodes;
import java.util.LinkedList;
import java.util.List;
public abstract class LogicalNode extends AbstractNode {
private List children = new LinkedList<>();
public LogicalNode() {}
public LogicalNode(LogicalNode parent) {
super(parent);
}
public LogicalNode(LogicalNode parent, List children) {
super(parent);
setChildren(children);
}
public List getChildren() {
return children;
}
public void setChildren(List children) {
this.children = children;
children.forEach(child -> child.setParent(this));
}
}