Package eu.simuline.util
Class Finder.Primary
- java.lang.Object
-
- eu.simuline.util.Finder
-
- eu.simuline.util.Finder.Primary
-
- Enclosing class:
- Finder
static class Finder.Primary extends Finder
The most basic kind of finder: MethodFinder.path(File)returns an instance of this.next()returns the given file and, if this is a folder all files therein.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.simuline.util.Finder
Finder.AndFilter, Finder.Callable, Finder.ExecFilter, Finder.ExecJavaFilter, Finder.Filter, Finder.NameFilter, Finder.NegFilter, Finder.OrFilter, Finder.Primary, Finder.PrintFilter, Finder.Secondary
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Has a next file ifffilesis not empty.Filenext()If the topmost entry offilesis no folder, this is returned as is.-
Methods inherited from class eu.simuline.util.Finder
add, and, exec, execFilter, execJava, execJavaFilter, main, name, nameFilter, not, or, path, print
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Has a next file ifffilesis not empty.- Specified by:
hasNextin classFinder- See Also:
Finder.next()
-
-