abstract static class Finder.Filter extends Object
| Constructor and Description |
|---|
Filter() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static Finder.Filter |
and(Finder.Filter[] filters)
Returns a filter which passes a file
iff so do all filters in
filters. |
(package private) Finder.Filter |
not()
Returns a filter which passes a file
iff
filter does not. |
(package private) static Finder.Filter |
or(Finder.Filter[] filters)
Returns a filter which passes a file
iff at least one filter in
filters does so. |
(package private) abstract boolean |
pass(File file)
Returns for the given file whether this file passes this filter.
|
abstract boolean pass(File file)
Finder.Filter not()
filter does not.
This corresponds the tests \! expr1
in the original find command.static Finder.Filter and(Finder.Filter[] filters)
filters.
This corresponds the tests expr1 -a .... exprn
and expr1 -and .... exprn
in the original find command.filters - a sequence of filters which may be empty.
If empty, this filter passes all files like Finder.TRUE.Finder.AndFilter.
For more details see there.static Finder.Filter or(Finder.Filter[] filters)
filters does so.
This corresponds the tests expr1 -o .... exprn
and expr1 -or .... exprn
in the original find command.filters - a sequence of filters which may be empty.
If empty, this filter passes no file like Finder.FALSE.Finder.AndFilter.
For more details see there.Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.