AbstractNode.withLevel constructor

AbstractNode.withLevel(
  1. int level
)

Constructs an AbstractNode at the given level in the tree @param level 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

Implementation

AbstractNode.withLevel(int level) {
  this.level = level;
}