getLevel method

int getLevel()

Returns 0 if this node is a leaf, 1 if a parent of a leaf, and so on; the root node will have the highest level

@return the node level

Implementation

int getLevel() {
  return level;
}