Node

constructor(@NotNull text: @NotNull String, @Nullable parent: @Nullable Tree.Node)(source)

Creates a new node with its associated text and an optional parent.

Parameters

text

The text to associate with the node

parent

The optional parent of the node. Passing any non-null value will add the created node to the parent's children


constructor(@NotNull text: @NotNull String)(source)

Creates a new node with its associated text without a parent.

Parameters

text

The text to associate with the node