Most visited

Recently visited

Added in API level 1

FileFilter

public interface FileFilter

java.io.FileFilter


抽象路径名的过滤器。

这个接口的实例可以传递给 File类的 listFiles(FileFilter)方法。

摘要(Summary)

公共方法(Public methods)

abstract boolean accept(File pathname)

测试指定的抽象路径名是否应包含在路径名列表中。

公共方法(Public methods)

accept

Added in API level 1
boolean accept (File pathname)

测试指定的抽象路径名是否应包含在路径名列表中。

参数(Parameters)
pathname File: The abstract pathname to be tested
返回(Returns)
boolean true if and only if pathname should be included

Hooray!