Constructors
constructor
- new TreeNode<V>(id, value?, children?): TreeNode<V>
-
Parameters
-
id: string
-
Optional
value: V
-
Optional
children: TreeNode<V>[]
Properties
Private
Optional
_children
Private
Optional
_value
_value?: V
Accessors
children
- get children(): undefined | TreeNode<V>[]
-
Returns undefined | TreeNode<V>[]
- set children(value): void
-
Returns void
id
- get id(): string
-
Returns string
- set id(value): void
-
Returns void
value
- get value(): undefined | V
-
Returns undefined | V
- set value(value): void
-
Returns void
Methods
addChildren
- addChildren(children): void
-
Returns void
getHeight
- getHeight(): number
-
Returns number