Package io.jmix.core.common.datastruct
Class Node<T>
java.lang.Object
io.jmix.core.common.datastruct.Node<T>
- All Implemented Interfaces:
Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
unused
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated, 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. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated, for removal: This API element is subject to removal in a future version.Adds a child to the list of children for thisNode<T>
.Deprecated, for removal: This API element is subject to removal in a future version.Return the children ofNode<T>
.getData()
Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.Returns the number of immediate children of thisNode<T>
.Deprecated, for removal: This API element is subject to removal in a future version.void
insertChildAt
(int index, Node<T> child) Deprecated, for removal: This API element is subject to removal in a future version.Inserts aNode<T>
at the specified position in the child list.void
removeChildAt
(int index) Deprecated, for removal: This API element is subject to removal in a future version.Remove theNode<T>
element at index index of theList<Node<T>>
.void
setChildren
(List<Node<T>> children) Deprecated, for removal: This API element is subject to removal in a future version.Sets the children of aNode<T>
object.void
Deprecated, for removal: This API element is subject to removal in a future version.toString()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
data
Deprecated, for removal: This API element is subject to removal in a future version. -
parent
Deprecated, for removal: This API element is subject to removal in a future version. -
children
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
Node
public Node()Deprecated, for removal: This API element is subject to removal in a future version. -
Node
Deprecated, for removal: This API element is subject to removal in a future version.Convenience constructor to create aNode<T>
with an instance of T.- Parameters:
data
- an instance of T.
-
-
Method Details
-
getChildren
Deprecated, for removal: This API element is subject to removal in a future version.Return the children ofNode<T>
. TheTree<T>
is represented by a single rootNode<T>
whose children are represented by aList<Node<T>>
. Each of theseNode<T>
elements in the List can have children. The getChildren() method will return the children of aNode<T>
.- Returns:
- the children of
Node<T>
-
getParent
Deprecated, for removal: This API element is subject to removal in a future version. -
setChildren
Deprecated, for removal: This API element is subject to removal in a future version.Sets the children of aNode<T>
object. See docs for getChildren() for more information.- Parameters:
children
- theList<Node<T>>
to set.
-
getNumberOfChildren
public int getNumberOfChildren()Deprecated, for removal: This API element is subject to removal in a future version.Returns the number of immediate children of thisNode<T>
.- Returns:
- the number of immediate children.
-
addChild
Deprecated, for removal: This API element is subject to removal in a future version.Adds a child to the list of children for thisNode<T>
. The addition of the first child will create a newList<Node<T>>
.- Parameters:
child
- aNode<T>
object to set.
-
insertChildAt
Deprecated, for removal: This API element is subject to removal in a future version.Inserts aNode<T>
at the specified position in the child list. Will throw an ArrayIndexOutOfBoundsException if the index does not exist.- Parameters:
index
- the position to insert at.child
- theNode<T>
object to insert.- Throws:
IndexOutOfBoundsException
- if thrown.
-
removeChildAt
Deprecated, for removal: This API element is subject to removal in a future version.Remove theNode<T>
element at index index of theList<Node<T>>
.- Parameters:
index
- the index of the element to delete.- Throws:
IndexOutOfBoundsException
- if thrown.
-
getData
Deprecated, for removal: This API element is subject to removal in a future version. -
setData
Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version.
-