private synchronized void getJobsUnder(NamedNode node, List<Job> jobs) { if (node.contents != null) { jobs.add(node.contents); } else { for (NamedNode child : node.children) { getJobsUnder(child, jobs); } } }
private synchronized void getJobsUnder(NamedNode node, List<Job> jobs) { if (node.contents != null) { jobs.add(node.contents); } else { for (NamedNode child : node.children) { getJobsUnder(child, jobs); } } }
private synchronized void getJobsUnder(NamedNode node, List<Job> jobs) { if (node.contents != null) { jobs.add(node.contents); } else { for (NamedNode child : node.children) { getJobsUnder(child, jobs); } } }
/** * Recursively fetch contents of all nodes under the specified index array, * used by the prefix matching iteration strategy */ public synchronized List<Job> jobsWithPrefix(int[] prefix) { List<Job> jobs = new ArrayList<Job>(); NamedNode prefixNode = nodeAt(prefix); if (prefixNode != null) { getJobsUnder(prefixNode, jobs); } return jobs; }
/** * Recursively fetch contents of all nodes under the specified index array, * used by the prefix matching iteration strategy */ public synchronized List<Job> jobsWithPrefix(int[] prefix) { List<Job> jobs = new ArrayList<Job>(); NamedNode prefixNode = nodeAt(prefix); if (prefixNode != null) { getJobsUnder(prefixNode, jobs); } return jobs; }
/** * Recursively fetch contents of all nodes under the specified index array, * used by the prefix matching iteration strategy */ public synchronized List<Job> jobsWithPrefix(int[] prefix) { List<Job> jobs = new ArrayList<Job>(); NamedNode prefixNode = nodeAt(prefix); if (prefixNode != null) { getJobsUnder(prefixNode, jobs); } return jobs; }