Class DataTree

java.lang.Object
com.mohamnag.jstatic.data_tree.DataTree

public class DataTree extends Object
  • Constructor Details

    • DataTree

      public DataTree()
  • Method Details

    • getOrCreateNodeWithPath

      public DataNode getOrCreateNodeWithPath(List<String> path)
      Find or create (recursively) nodes for given path and return it.
    • getOrCreatePageWithPath

      public DataPage getOrCreatePageWithPath(String pageName, List<String> path)
      Creates a page at a node with given path. If necessary all the nodes on the path will be created too.
    • getPageWithPath

      public Optional<DataPage> getPageWithPath(List<String> path)
    • forAllPages

      public void forAllPages(Consumer<DataPage> action)