this.root = root;
return ((ViewNode) o).children.get(i);
return ((ViewNode) o).children.size();
//noinspection SuspiciousMethodCalls return ((ViewNode) parent).children.indexOf(child);
return root;
ViewNode node = (ViewNode) child; return node.children == null || node.children.size() == 0;