int (Object object, Object child) { if (child != null) { List<Node> children = getEntryChildren(object); for (int i = 0; i < children.size(); i++) { if (child.equals(children.get(i).object)) return i; } } return -1; }