Iterates over the absolute paths. The iterator supports the remove method.
()
| 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 () { |
no outgoing calls
no test coverage detected