public void startScan(final FileExtensionFilter filter, final String... paths) { if (inScan.compareAndSet(false, true)) { m_scanTask = new ScanTask(filter); m_scanTask.execute(paths); } else { m_scanTask.addPaths(paths); } }
public void startScan(final FileExtensionFilter filter, final Collection<String> paths) { final String[] arr = paths.toArray(new String[paths.size()]); if (inScan.compareAndSet(false, true)) { m_scanTask = new ScanTask(filter); m_scanTask.execute(arr); } else { m_scanTask.addPaths(arr); } }