public class

Tree

extends Object
java.lang.Object
   ↳ com.microstrategy.utils.Tree<T>

Class Overview

The tree structure whose value on each tree node is of type T.

Summary

Public Constructors
Tree()
Default constructor.
Tree(GenericTreeNode<T> root, GenericTreeNode<T> current)
Constructor.
Public Methods
GenericTreeNode<T> getCurrentNode()
Returns the current node of the tree.
List<FlattenedTreeNode> getFlattenedTree()
Returns a list of FlattenedTreeNode which represents the current tree.
GenericTreeNode<T> getRootNode()
Returns the root node.
void setCurrentNode(GenericTreeNode<T> currentNode)
Sets the current node of the tree.
void setRootNode(GenericTreeNode<T> rootNode)
Sets the root node of the tree.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Tree ()

Default constructor.

public Tree (GenericTreeNode<T> root, GenericTreeNode<T> current)

Constructor.

Parameters
root The root node of the tree.
current The current node of the tree.

Public Methods

public GenericTreeNode<T> getCurrentNode ()

Returns the current node of the tree.

public List<FlattenedTreeNode> getFlattenedTree ()

Returns a list of FlattenedTreeNode which represents the current tree.

Returns

public GenericTreeNode<T> getRootNode ()

Returns the root node.

Returns
  • root node of the tree.

public void setCurrentNode (GenericTreeNode<T> currentNode)

Sets the current node of the tree.

Parameters
currentNode current node.

public void setRootNode (GenericTreeNode<T> rootNode)

Sets the root node of the tree.

Parameters
rootNode the root node of the tree.