public class FalseFileFilter extends Object implements IOFileFilter, 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.
|
EMPTY_STRING_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
FalseFileFilter()
Restrictive constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File file)
Returns false.
|
boolean |
accept(File dir,
String name)
Returns false.
|
FileVisitResult |
accept(Path file,
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.
|
String |
toString() |
public static final IOFileFilter FALSE
public static final IOFileFilter INSTANCE
public boolean accept(File file)
accept
in interface FileFilter
accept
in interface IOFileFilter
file
- the file to check (ignored)public boolean accept(File dir, String name)
accept
in interface FilenameFilter
accept
in interface IOFileFilter
dir
- the directory to check (ignored)name
- the file name (ignored)public FileVisitResult accept(Path file, 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 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".Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.