getNodeByID

abstract fun getNodeByID(id: Int): Node<T>

Allows to access a node known its id. Depending on the implementation, this method may or not be optimized (namely, id could run in constant or linear time with the number of nodes).

Return

the node with that id, or null if it does not exist in this environment

Parameters

id

the node's ID