public interface File.FilenameFilter

Interface to filter filenames.

Methods

public abstract boolean accept(File f, String name)Checks if the given file should be included in results.

Method details

accept

public abstract boolean accept(File f, String name)
Checks if the given file should be included in results.

Parameters

f File
The parent directory of the file to check.
name String
The file name.

Returns

True if the file should be included in results.