Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Node

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new Node(value?: any, key?: any): Node
  • Initialize node with the given value and key.

    Parameters

    • Default value value: any = null
    • Default value key: any = null

    Returns Node

Properties

Private _key

_key: any = null

Private _value

_value: any = null

Accessors

key

  • get key(): any
  • Returns the key of the current node.

    Returns any

value

  • get value(): any
  • Returns the value of the current node.

    Returns any

Methods

setKey

  • setKey(key: any): void
  • Sets the key of the current node.

    Parameters

    • key: any

      Key will be set.

    Returns void

setValue

  • setValue(value: any): void
  • Sets the value of the current node.

    Parameters

    • value: any

      Value will be set.

    Returns void

Generated using TypeDoc