public class NotFileFilter extends Object implements FileFilter, Serializable
| 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 fileSelectInfo)
Returns the logical NOT of the underlying filter's return value for the same
File.
|
String |
toString()
Provide a String representation of this file filter.
|
public NotFileFilter(FileFilter filter)
filter - the filter, must not be nullpublic boolean accept(FileSelectInfo fileSelectInfo) throws FileSystemException
accept in interface FileFilterfileSelectInfo - the File to checktrue if the filter returns falseFileSystemException - Thrown for file system errors.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.