public interface FilenameFilter
File
s. Can be used in File.list(FilenameFilter filter)
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File dir,
java.lang.String name)
Checks if the current name must be included in the resulting list.
|
boolean accept(File dir, java.lang.String name)
dir
- - the current directory.name
- - the name of the element in the directory