The goog.structs.Node Class

goog.structs.Node(key, value)

A generic immutable node. This can be used in various collections that require a node object for its item (such as a heap).

key {*}
Key.
value {*}
Vaue.

.clone()

Clones a node and returns a new node.

returns {goog.structs.Node}
A new goog.structs.Node with the same key value pair.

.getKey()

Gets the key.

returns {*}
The key.

.getValue()

Gets the value.

returns {*}
The value.