static class Finder.OrFilter extends Finder.Filter
filters do so.
This is a lazy or-filter, i.e. if one of the filters accepts the file, the filters later in the sequence are not executed any more. So the ordering has an effect, if one of the filters has a side effect. Ordering may also affect performance.
See Finder.or(Filter[]).
| Modifier and Type | Field and Description |
|---|---|
private Finder.Filter[] |
filters
This filter passes a file iff at least one of of these passes
if invoked in the natural ordering.
|
| Constructor and Description |
|---|
OrFilter(Finder.Filter[] filters) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
pass(File file)
Returns for the given file whether this file passes this filter.
|
and, not, orprivate final Finder.Filter[] filters
OrFilter(Finder.Filter[] filters)
public boolean pass(File file)
Finder.Filterpass in class Finder.FilterCopyright © 2012–2018 Simuline Organization (l2r). All rights reserved.