public class NotFileFilter extends AbstractFileFilter implements Serializable
FileFilterUtils.notFileFilter(IOFileFilter),
序列化表格| 构造器和说明 |
|---|
NotFileFilter(IOFileFilter filter)
Constructs a new file filter that NOTs the result of another filter.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
accept(File file)
Returns the logical NOT of the underlying filter's return value for the same File.
|
boolean |
accept(File file,
String name)
Returns the logical NOT of the underlying filter's return value for the same arguments.
|
String |
toString()
Provide a String representaion of this file filter.
|
public NotFileFilter(IOFileFilter filter)
filter - the filter, must not be nullIllegalArgumentException - if the filter is nullpublic boolean accept(File file)
accept 在接口中 FileFilteraccept 在接口中 IOFileFilteraccept 在类中 AbstractFileFilterfile - the File to checkpublic boolean accept(File file, String name)
accept 在接口中 FilenameFilteraccept 在接口中 IOFileFilteraccept 在类中 AbstractFileFilterfile - the File directoryname - the filenamepublic String toString()
toString 在类中 AbstractFileFilter