/** * Finds a file. */ public void find(FileConsumer fileConsumer) { File f; while ((f = nextFile()) != null) { boolean next = fileConsumer.onFile(f); if (!next) { break; } } }
/** * Finds a file. */ public void find(FileConsumer fileConsumer) { File f; while ((f = nextFile()) != null) { boolean next = fileConsumer.onFile(f); if (!next) { break; } } }