public class NotFileFilter extends AbstractFileFilter implements Serializable
FileFilterUtils.notFileFilter(IOFileFilter),
Serialized Form| Constructor and Description |
|---|
NotFileFilter(IOFileFilter filter)
Constructs a new file filter that NOTs the result of another filter.
|
| Modifier and Type | Method and Description |
|---|---|
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 in interface FileFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File to checkpublic boolean accept(File file, String name)
accept in interface FilenameFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File directoryname - the filenamepublic String toString()
toString in class AbstractFileFilterCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.