public class NumberRangeFileFilter extends Object implements FileFilter
Constructor and Description |
---|
NumberRangeFileFilter(int min,
int max,
boolean recurse)
Sets up a NumberRangeFileFilter by specifying the range of numbers
to accept, and whether to also traverse
folders for recursive search.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File file)
Checks whether a file satisfies the number range selection filter.
|
public NumberRangeFileFilter(int min, int max, boolean recurse)
min
- The minimum number file to accept (checks >= this one)max
- The maximum number file to accept (checks <= this one)recurse
- go into folderspublic boolean accept(File file)
accept
in interface FileFilter
file
- The file