示例#1
0
  public long recalculateChildCount() {
    // Reset the child count
    childCount = 0;

    if (hasChildren()) {
      for (TreeFacetField childNode : hierarchy) {
        childCount += childNode.recalculateChildCount();
      }
    }

    return getTotal();
  }