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

Method iterator

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

Iterates over the absolute paths. The iterator supports the remove method.

()

Source from the content-addressed store, hash-verified

338
339 /** Iterates over the absolute paths. The iterator supports the remove method. */
340 public Iterator<String> iterator () {
341 return new Iterator<String>() {
342 private Iterator<Path> iter = paths.iterator();
343
344 public void remove () {
345 iter.remove();
346 }
347
348 public String next () {
349 return iter.next().absolute();
350 }
351
352 public boolean hasNext () {
353 return iter.hasNext();
354 }
355 };
356 }
357
358 /** Iterates over the paths as File objects. The iterator supports the remove method. */
359 public Iterator<File> fileIterator () {

Callers 4

GlobScannerMethod · 0.80
processMethod · 0.80
fileIteratorMethod · 0.80
RegexScannerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected