static class Finder.AndFilter extends Finder.Filter
filters do so.
This is a lazy and-filter, i.e. if one of the filters rejects 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.
Maybe lazy and-filters are not so useful, because, unlike non-lazy and-filters and or-filters, they could be realized as a sequence of filters.
See Finder.and(Filter[]).
| Modifier and Type | Field and Description |
|---|---|
private Finder.Filter[] |
filters
This filter passes a file iff all of these pass
if invoked in the natural ordering.
|
| Constructor and Description |
|---|
AndFilter(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
AndFilter(Finder.Filter[] filters)
public boolean pass(File file)
Finder.Filterpass in class Finder.FilterCopyright © 2012–2018 Simuline Organization (l2r). All rights reserved.