MCPcopy Create free account
hub / github.com/EsotericSoftware/wildcard / fileIterator

Method fileIterator

src/com/esotericsoftware/wildcard/Paths.java:359–375  ·  view source on GitHub ↗

Iterates over the paths as File objects. The iterator supports the remove method.

()

Source from the content-addressed store, hash-verified

357
358 /** Iterates over the paths as File objects. The iterator supports the remove method. */
359 public Iterator<File> fileIterator () {
360 return new Iterator<File>() {
361 private Iterator<Path> iter = paths.iterator();
362
363 public void remove () {
364 iter.remove();
365 }
366
367 public File next () {
368 return iter.next().file();
369 }
370
371 public boolean hasNext () {
372 return iter.hasNext();
373 }
374 };
375 }
376
377 static private final class Path {
378 public final String dir;

Callers

nothing calls this directly

Calls 1

iteratorMethod · 0.80

Tested by

no test coverage detected