Class Node<T>

java.lang.Object
io.jmix.core.common.datastruct.Node<T>
All Implemented Interfaces:
Serializable

@Deprecated(forRemoval=true) public class Node<T> extends Object implements Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
unused
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    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.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Node(T data)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Convenience constructor to create a Node<T> with an instance of T.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addChild(Node<T> child)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Adds a child to the list of children for this Node<T>.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the children of Node<T>.
    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 this Node<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 a Node<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 the Node<T> element at index index of the List<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 a Node<T> object.
    void
    setData(T data)
    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.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • data

      public T data
      Deprecated, for removal: This API element is subject to removal in a future version.
    • parent

      public Node<T> parent
      Deprecated, for removal: This API element is subject to removal in a future version.
    • children

      public List<Node<T>> 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

      public Node(T data)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Convenience constructor to create a Node<T> with an instance of T.
      Parameters:
      data - an instance of T.
  • Method Details

    • getChildren

      public List<Node<T>> getChildren()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the children of Node<T>. The Tree<T> is represented by a single root Node<T> whose children are represented by a List<Node<T>>. Each of these Node<T> elements in the List can have children. The getChildren() method will return the children of a Node<T>.
      Returns:
      the children of Node<T>
    • getParent

      public Node<T> getParent()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setChildren

      public void setChildren(List<Node<T>> children)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the children of a Node<T> object. See docs for getChildren() for more information.
      Parameters:
      children - the List<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 this Node<T>.
      Returns:
      the number of immediate children.
    • addChild

      public void addChild(Node<T> child)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Adds a child to the list of children for this Node<T>. The addition of the first child will create a new List<Node<T>>.
      Parameters:
      child - a Node<T> object to set.
    • insertChildAt

      public void insertChildAt(int index, Node<T> child) throws IndexOutOfBoundsException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Inserts a Node<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 - the Node<T> object to insert.
      Throws:
      IndexOutOfBoundsException - if thrown.
    • removeChildAt

      public void removeChildAt(int index) throws IndexOutOfBoundsException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Remove the Node<T> element at index index of the List<Node<T>>.
      Parameters:
      index - the index of the element to delete.
      Throws:
      IndexOutOfBoundsException - if thrown.
    • getData

      public T getData()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setData

      public void setData(T data)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object