NotFileFilterpublic class NotFileFilter extends AbstractFileFilter implements SerializableThis filter produces a logical NOT of the filters specified. |
Fields Summary |
---|
private final IOFileFilter | filterThe filter |
Constructors Summary |
---|
public NotFileFilter(IOFileFilter filter)Constructs a new file filter that NOTs the result of another filters.
if (filter == null) {
throw new IllegalArgumentException("The filter must not be null");
}
this.filter = filter;
|
Methods Summary |
---|
public boolean | accept(java.io.File file)Checks to see if both filters are true.
return ! filter.accept(file);
| public boolean | accept(java.io.File file, java.lang.String name)Checks to see if both filters are true.
return ! filter.accept(file, name);
| public java.lang.String | toString()Provide a String representaion of this file filter.
return super.toString() + "(" + filter.toString() + ")";
|
|