Interface TreeModel<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      TreeNode<T> find​(T element)
      Recursively searches from the root nodes to find the tree node that matches the provided element.
      TreeNode<T> getById​(java.lang.String id)
      Locates a node in the tree by its unique id.
      java.util.List<TreeNode<T>> getRootNodes()
      Returns the node or nodes that are the top level of the tree.
    • Method Detail

      • getRootNodes

        java.util.List<TreeNode<T>> getRootNodes()
        Returns the node or nodes that are the top level of the tree.
      • getById

        TreeNode<TgetById​(java.lang.String id)
        Locates a node in the tree by its unique id.
        Throws:
        java.lang.IllegalArgumentException - if no such node exists
        See Also:
        TreeNode.getId()
      • find

        TreeNode<Tfind​(T element)
        Recursively searches from the root nodes to find the tree node that matches the provided element.
        Parameters:
        element - to search for
        Returns:
        matching node, or null if not found