public class NotFileFilter extends AbstractFileFilter implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private IOFileFilter |
filter
The filter
|
| Constructor and Description |
|---|
NotFileFilter(IOFileFilter filter)
Constructs a new file filter that NOTs the result of another filters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File file)
Checks to see if both filters are true.
|
boolean |
accept(java.io.File file,
java.lang.String name)
Checks to see if both filters are true.
|
java.lang.String |
toString()
Provide a String representaion of this file filter.
|
private final IOFileFilter filter
public NotFileFilter(IOFileFilter filter)
filter - the filter, must not be nulljava.lang.IllegalArgumentException - if the filter is nullpublic boolean accept(java.io.File file)
accept in interface java.io.FileFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File to checkpublic boolean accept(java.io.File file,
java.lang.String name)
accept in interface java.io.FilenameFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File directoryname - the filenamepublic java.lang.String toString()
toString in class AbstractFileFilterCopyright (c) 2002-2014 Apache Software Foundation