|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.armatiek.infofuze.stream.filesystem.filefilter.NotFileFilter
public class NotFileFilter
This filter produces a logical NOT of the filters specified.
Based on code from Apache Commons IO version 2.01.
The main difference is that this class filters objects that
implement FileIf
,
not File
.
Original author Stephen Colebourne
Constructor Summary | |
---|---|
NotFileFilter(IOFileFilter filter)
Constructs a new file filter that NOTs the result of another filter. |
Method Summary | |
---|---|
boolean |
accept(FileIf file)
Returns the logical NOT of the underlying filter's return value for the same File. |
java.lang.String |
toString()
Provide a String representaion of this file filter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NotFileFilter(IOFileFilter filter)
filter
- the filter, must not be null
java.lang.IllegalArgumentException
- if the filter is nullMethod Detail |
---|
public boolean accept(FileIf file)
accept
in interface IOFileFilter
file
- the File to check
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |