public Location next() { // Add the children of the next node to the queue ... Location next = queue.poll(); if (next == null) throw new NoSuchElementException(); List<Location> children = getChildren(next); if (children != null && children.size() > 0) { // We should only add the children if they are nodes in the branch, so check the first one... Location firstChild = children.get(0); if (includes(firstChild)) queue.addAll(0, children); } return next; }
public boolean includes( Location location ) { CheckArg.isNotNull(location, "location"); return request.includes(location); }
public boolean includes( Path path ) { CheckArg.isNotNull(path, "path"); path = getAbsolutePath(path); return request.includes(path); }
if (!readSubgraph.includes(child)) { if (!recordedParentLocation) { locationsByPath.put(location.getPath(), location);