public class NotFileFilter extends AbstractFileFilter implements Serializable
| 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(File file)
Checks to see if both filters are true.
|
boolean |
accept(File file,
String name)
Checks to see if both filters are true.
|
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 IOFileFilteraccept in interface FileFilteraccept in class AbstractFileFilterfile - the File to checkpublic boolean accept(File file, String name)
accept in interface IOFileFilteraccept in interface FilenameFilteraccept in class AbstractFileFilterfile - the File directoryname - the filenamepublic String toString()
toString in class AbstractFileFilterCopyright © 2001–2019 KnowGate. All rights reserved.