sizeWithNode method
Implementation
int sizeWithNode(AbstractNode node) {
int size = 0;
for (Iterator i = node.getChildBoundables().iterator; i.moveNext();) {
Boundable childBoundable = i.current as Boundable;
if (childBoundable is AbstractNode) {
size += sizeWithNode(childBoundable as AbstractNode);
} else if (childBoundable is ItemBoundable) {
size += 1;
}
}
return size;
}