Method to add new node to tree, node will be added as last child (mutable operation!)
tree structure for node adding
identifier of parent node, null if new node should be on root level
data of new node
data of new additional nodes
Method to add new node to tree, node will be added as first child (mutable operation!)
tree structure for node adding
identifier of parent node, null if new node should be on root level
data of new node
data of new additional nodes
Method to compute paths for nodes (mutable operation) path property will be added into each node e.g. {path: "parent/child"...}
tree structure
property to use for path computation
to delimit path
property where path will be stored
path of top level nodes
Method to update node by id with given data in tree (mutable operation!)
tree structure for node editing
identifier of node to be updated
new data of node (you should also pass children if you want to keep it)
Method to get nodes that are part of path from root Alias for getAncestors method
tree structure to search in
identifier of node
all nodes that are part of path (ordered from root)
Method to get subtree from given node (children of node) Alias for getChildren method
tree structure to search in
identifier of node
subtree
Convert list to tree like structure
list of objects, objects need to have id (as you configured, or 'id' by default) and parentId property (as you configured, or 'parentId' by default)
id of root parent nodes (if not specified, root nodes are nodes with parentId of null)
tree structure
Class to transform and manipulate tree like structures