public class FalseFileFilter extends java.lang.Object implements IOFileFilter, java.io.Serializable
FileFilterUtils.falseFileFilter()
,
Serialized FormModifier and Type | Field and Description |
---|---|
static IOFileFilter |
FALSE
Singleton instance of false filter.
|
static IOFileFilter |
INSTANCE
Singleton instance of false filter.
|
private static long |
serialVersionUID |
private static java.lang.String |
TO_STRING |
EMPTY_STRING_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
FalseFileFilter()
Restrictive constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File file)
Returns false.
|
boolean |
accept(java.io.File dir,
java.lang.String name)
Returns false.
|
java.nio.file.FileVisitResult |
accept(java.nio.file.Path file,
java.nio.file.attribute.BasicFileAttributes attributes)
Returns false.
|
IOFileFilter |
and(IOFileFilter fileFilter)
Creates a new "and" filter with this filter.
|
IOFileFilter |
negate()
Creates a new "not" filter with this filter.
|
IOFileFilter |
or(IOFileFilter fileFilter)
Creates a new "or" filter with this filter.
|
java.lang.String |
toString() |
private static final java.lang.String TO_STRING
public static final IOFileFilter FALSE
public static final IOFileFilter INSTANCE
private static final long serialVersionUID
public boolean accept(java.io.File file)
accept
in interface java.io.FileFilter
accept
in interface IOFileFilter
file
- the file to check (ignored)public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
accept
in interface IOFileFilter
dir
- the directory to check (ignored)name
- the file name (ignored)public java.nio.file.FileVisitResult accept(java.nio.file.Path file, java.nio.file.attribute.BasicFileAttributes attributes)
accept
in interface PathFilter
accept
in interface IOFileFilter
file
- the file to check (ignored)attributes
- the file's basic attributes (TODO may be null).public IOFileFilter negate()
IOFileFilter
negate
in interface IOFileFilter
public java.lang.String toString()
toString
in class java.lang.Object
public IOFileFilter and(IOFileFilter fileFilter)
IOFileFilter
and
in interface IOFileFilter
fileFilter
- the filter to "and".public IOFileFilter or(IOFileFilter fileFilter)
IOFileFilter
or
in interface IOFileFilter
fileFilter
- the filter to "or".