public class AndFileFilter
extends java.lang.Object
implements java.io.FileFilter
FileFilter
.
This filter accept file if both filters accepts it.Modifier and Type | Field and Description |
---|---|
protected java.io.FileFilter |
filter1 |
protected java.io.FileFilter |
filter2 |
static java.lang.String |
REVISION |
Constructor and Description |
---|
AndFileFilter(java.io.FileFilter filter1,
java.io.FileFilter filter2)
Create a new file filter with the specified filters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File pathname)
Accept file if all filters of this AndFileFilter accept it.
|
public static final java.lang.String REVISION
protected java.io.FileFilter filter1
protected java.io.FileFilter filter2
public AndFileFilter(java.io.FileFilter filter1, java.io.FileFilter filter2)
filter1
- the first filter, must not be nullfilter2
- the second filter, must not be nulljava.lang.IllegalArgumentException
- if either filter is nullCopyright © 2001-2017 Jalios SA. All Rights Reserved.