コード例 #1
0
 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);
   }
 }
コード例 #2
0
 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);
   }
 }