Package io.jmix.core.common.datastruct
Class Tree<T>
java.lang.Object
io.jmix.core.common.datastruct.Tree<T>
- All Implemented Interfaces:
Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
unused
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTree()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Return the first root Node of the tree.Deprecated, for removal: This API element is subject to removal in a future version.Return the root nodes of the tree.void
setRootNodes
(List<Node<T>> rootNodes) Deprecated, for removal: This API element is subject to removal in a future version.Set the root Element for the tree.toList()
Deprecated, for removal: This API element is subject to removal in a future version.Returns theTree<T>
as a List ofNode<T>
objects.toString()
Deprecated, for removal: This API element is subject to removal in a future version.Returns a String representation of the Tree.
-
Constructor Details
-
Tree
public Tree()Deprecated, for removal: This API element is subject to removal in a future version. -
Tree
Deprecated, for removal: This API element is subject to removal in a future version. -
Tree
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getRootNode
Deprecated, for removal: This API element is subject to removal in a future version.Return the first root Node of the tree.- Returns:
- the root element.
-
getRootNodes
Deprecated, for removal: This API element is subject to removal in a future version.Return the root nodes of the tree.- Returns:
- the root elements.
-
setRootNodes
Deprecated, for removal: This API element is subject to removal in a future version.Set the root Element for the tree.- Parameters:
rootNodes
- the root element to set.
-
toList
Deprecated, for removal: This API element is subject to removal in a future version.Returns theTree<T>
as a List ofNode<T>
objects. The elements of the List are generated from a pre-order traversal of the tree.- Returns:
- a
List<Node<T>>
.
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.Returns a String representation of the Tree. The elements are generated from a pre-order traversal of the Tree.
-