public class NotFileFilter extends java.lang.Object implements FileFilter, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private FileFilter |
filter
The filter.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
NotFileFilter(FileFilter filter)
Constructs a new file filter that NOTs the result of another filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(FileSelectInfo fileInfo)
Returns the logical NOT of the underlying filter's return value for the same
File.
|
java.lang.String |
toString()
Provide a String representation of this file filter.
|
private static final long serialVersionUID
private final FileFilter filter
public NotFileFilter(FileFilter filter)
filter
- the filter, must not be nullpublic boolean accept(FileSelectInfo fileInfo) throws FileSystemException
accept
in interface FileFilter
fileInfo
- the File to checktrue
if the filter returns false
FileSystemException
- Thrown for file system errors.public java.lang.String toString()
toString
in class java.lang.Object