public abstract class AbstractTreeNode<N extends AbstractTreeNode<N>> extends IdTitle implements Node<N>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<N> |
children |
protected int |
parentId |
Constructor and Description |
---|
AbstractTreeNode() |
Modifier and Type | Method and Description |
---|---|
java.util.List<N> |
getChildren() |
int |
getParentId() |
void |
setChildren(java.util.List<N> children) |
void |
setParentId(int parentId) |
java.util.List<N> |
toList() |
equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap, setId
protected int parentId
protected java.util.List<N extends AbstractTreeNode<N>> children
public java.util.List<N> getChildren()
getChildren
in interface TreeNode<N extends AbstractTreeNode<N>>
public void setChildren(java.util.List<N> children)
setChildren
in interface Node<N extends AbstractTreeNode<N>>
public int getParentId()
getParentId
in interface Node<N extends AbstractTreeNode<N>>
public void setParentId(int parentId)
public java.util.List<N> toList()