/** * Return an Iterator over one or more input URL Lists. */ public Iterator<List<URL>> getUrlIterator() { List<List<URL>> urlLists = getUrlLists(); return urlLists != null && urlLists.size() > 0 ? urlLists.iterator() : null; }
/** * Warm up the threads in the thread pool so the timing results * will be more accurate. */ private static void warmUpThreadPool() { System.out.println("Warming up the thread pool"); // Delete any the filtered images from the previous run. deleteFilteredImages(); // Create and run the ImageTaskCompletionServiceFixed test to // warm up threads in the thread pool. ImageTaskGang taskGang = new ImageTaskCompletionServiceFixed(mFilters, Options.instance().getUrlLists()); taskGang.run(); // Run the garbage collector to avoid perturbing the test. System.gc(); System.out.println("End warming up the thread pool"); }
Options.instance().getUrlLists();