Top Description Methods
java.io

public Interface FileFilter

Annotations
@FunctionalInterface

A filter for abstract pathnames.

Instances of this interface may be passed to the listFiles(FileFilter) method of the java.io.File class.

Since
1.2

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if and only if pathname should be included
accept
(File
The abstract pathname to be tested
pathname
)

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

Method Detail

acceptback to summary
public boolean accept(File pathname)

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

Parameters
pathname:File

The abstract pathname to be tested

Returns:boolean

true if and only if pathname should be included