Package com.mohamnag.jstatic.data_tree
Class DataTree
java.lang.Object
com.mohamnag.jstatic.data_tree.DataTree
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
forAllPages
(Consumer<DataPage> action) getOrCreateNodeWithPath
(List<String> path) Find or create (recursively) nodes for given path and return it.getOrCreatePageWithPath
(String pageName, List<String> path) Creates a page at a node with given path.getPageWithPath
(List<String> path)
-
Constructor Details
-
DataTree
public DataTree()
-
-
Method Details
-
getOrCreateNodeWithPath
Find or create (recursively) nodes for given path and return it. -
getOrCreatePageWithPath
Creates a page at a node with given path. If necessary all the nodes on the path will be created too. -
getPageWithPath
-
forAllPages
-