Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
Path |
next() |
static FileTreeFileNameIterator |
of(FileTree fileTree,
String fileName)
Create new instance of
FileTreeFileNameIterator |
static Iterable<Path> |
ofIterable(FileTree fileTree,
String fileName)
Create new instance of
FileTreeFileNameIterator and return it as Iterable which
can be used in for loop |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
public static FileTreeFileNameIterator of(FileTree fileTree, String fileName)
FileTreeFileNameIterator
fileTree
- File tree to recursively iteratefileName
- File name to search for, for example "BUCK"public static Iterable<Path> ofIterable(FileTree fileTree, String fileName)
FileTreeFileNameIterator
and return it as Iterable
which
can be used in for loopfileTree
- File tree to recursively iteratefileName
- File name to search for, for example "BUCK"