static class Finder.Secondary extends Finder
Finder.Filter.
Files are read from encl and are passed via next()
iff they pass the filter filter.Finder.AndFilter, Finder.Callable, Finder.ExecFilter, Finder.ExecJavaFilter, Finder.Filter, Finder.NameFilter, Finder.NegFilter, Finder.OrFilter, Finder.Primary, Finder.PrintFilter, Finder.Secondary| Modifier and Type | Field and Description |
|---|---|
private Finder |
encl
The source finder from which the stream of files is read.
**** this is superfluous if this is not static
|
private Finder.Filter |
filter
The filter to be passed
before a file is returned by
next(). |
private File |
next
|
| Constructor and Description |
|---|
Secondary(Finder encl,
Finder.Filter filter)
Create a finder receiving a stream of files from
encl
and passing them further via next()
if they pass the filter filter. |
| Modifier and Type | Method and Description |
|---|---|
protected File |
getNext() |
boolean |
hasNext()
Returns whether this Finder can emit another file.
|
File |
next()
Returns the next file this finder can emit.
|
protected void |
updateNext() |
add, and, exec, execFilter, execJava, execJavaFilter, main, name, nameFilter, not, or, path, printprivate File next
private final Finder encl
private final Finder.Filter filter
next().Secondary(Finder encl, Finder.Filter filter)
encl
and passing them further via next()
if they pass the filter filter.protected void updateNext()
public boolean hasNext()
FinderhasNext in class FinderFinder.next()public File next()
FinderFinder.hasNext() returns true.protected File getNext()
Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.