getDepth method

int getDepth(
  1. TKey key
)

Gets the depth of the given node (0 for roots).

Implementation

int getDepth(TKey key) {
  return _depthOfKey(key);
}