public class FalseFileFilter extends Object implements IOFileFilter, Serializable
FileFilterUtils.falseFileFilter(),
Serialized Form| Modifier 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 FileFilteraccept in interface IOFileFilterfile - the file to check (ignored)public boolean accept(File dir, String name)
accept in interface FilenameFilteraccept in interface IOFileFilterdir - the directory to check (ignored)name - the file name (ignored)public FileVisitResult accept(Path file, BasicFileAttributes attributes)
accept in interface PathFilteraccept in interface IOFileFilterfile - the file to check (ignored)attributes - the file's basic attributes (TODO may be null).public IOFileFilter negate()
IOFileFilternegate in interface IOFileFilterpublic IOFileFilter and(IOFileFilter fileFilter)
IOFileFilterand in interface IOFileFilterfileFilter - the filter to "and".public IOFileFilter or(IOFileFilter fileFilter)
IOFileFilteror in interface IOFileFilterfileFilter - the filter to "or".Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.