Closure Library API Documentation
Go to class or file:
structs.Node
Extends
A generic immutable node. This can be used in various collections that require a node object for its item (such as a heap).
Useful links
Source Code
Git
Inheritance
goog.structs.Node
goog.structs.TreeNode
goog.structs.Node
Constructor
goog.structs.Node(
key
,
value
)
Parameters
key
:
K
Key.
value
:
V
Value.
Instance Methods
Public
Protected
Private
Defined in
goog.structs.Node
clone
()
⇒
!
goog.structs.Node
.<
K
,
V
>
Clones a node and returns a new node.
Returns:
!
goog.structs.Node
.<
K
,
V
> A new goog.structs.Node with the same key value pair.
code »
getKey
()
⇒
K
Gets the key.
Returns:
K
The key.
code »
getValue
()
⇒
V
Gets the value.
Returns:
V
The value.
code »
Instance Properties
Defined in
goog.structs.Node
key_
:
The key.
Code »
value_
:
The value.
Code »
Package structs
Package Reference