# FileFilter

public interface **FileFilter** A filter for abstract pathnames.

Instances of this interface may be passed to the `` `https://developers.google.com/j2objc/javadoc/jre/reference/java/io/File.html#listFiles(java.io.FileFilter)` `` method
of the `` `https://developers.google.com/j2objc/javadoc/jre/reference/java/io/File.html` `` class.

### Public Method Summary

|---|---|
| abstract boolean | [accept](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/FileFilter.html#accept(java.io.File))([File](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/File.html) pathname) Tests whether or not the specified abstract pathname should be included in a pathname list. |

## Public Methods

#### public abstract boolean
**accept**
([File](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/File.html) pathname)

Tests whether or not the specified abstract pathname should be
included in a pathname list.

##### Parameters

| pathname | The abstract pathname to be tested |
|---|---|

##### Returns

- `true` if and only if `pathname` should be included