java.io.FileFilter
, java.io.FilenameFilter
, java.io.Serializable
, IOFileFilter
public class FalseFileFilter extends java.lang.Object implements IOFileFilter, java.io.Serializable
FileFilterUtils.falseFileFilter()
,
Serialized FormModifier and Type | Field | Description |
---|---|---|
static IOFileFilter |
FALSE |
Singleton instance of false filter.
|
static IOFileFilter |
INSTANCE |
Singleton instance of false filter.
|
Modifier | Constructor | Description |
---|---|---|
protected |
FalseFileFilter() |
Restrictive consructor.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
accept(java.io.File file) |
Returns false.
|
boolean |
accept(java.io.File dir,
java.lang.String name) |
Returns false.
|
public static final IOFileFilter FALSE
public static final IOFileFilter INSTANCE
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 filename (ignored)Copyright (c) 2002-2017 Apache Software Foundation