fun <T : Node?> getOrAdd(node: T): T?

Gets the cached node equivalent to node, otherwise puts it into the cache If already marked as deleted, or provided null, return null

Return

the node from the cache or node

Parameters

node

the node to get

Type Parameters

T

the type of node