|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.io.filefilter.AbstractFileFilter org.apache.commons.io.filefilter.NotFileFilter
public class NotFileFilter
This filter produces a logical NOT of the filters specified.
FileFilterUtils.notFileFilter(IOFileFilter)
,
Serialized FormConstructor Summary | |
---|---|
NotFileFilter(IOFileFilter filter)
Constructs a new file filter that NOTs the result of another filter. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NotFileFilter(IOFileFilter filter)
filter
- the filter, must not be null
IllegalArgumentException
- if the filter is nullMethod Detail |
---|
public boolean accept(File file)
accept
in interface FileFilter
accept
in interface IOFileFilter
accept
in class AbstractFileFilter
file
- the File to check
public boolean accept(File file, String name)
accept
in interface FilenameFilter
accept
in interface IOFileFilter
accept
in class AbstractFileFilter
file
- the File directoryname
- the filename
public String toString()
toString
in class AbstractFileFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |