Package org.apache.commons.io.filefilter
Class FalseFileFilter
java.lang.Object
org.apache.commons.io.filefilter.FalseFileFilter
- All Implemented Interfaces:
FileFilter
,FilenameFilter
,Serializable
,IOFileFilter
A file filter that always returns false.
- Since:
- 1.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IOFileFilter
Singleton instance of false filter.static final IOFileFilter
Singleton instance of false filter.private static final long
Fields inherited from interface org.apache.commons.io.filefilter.IOFileFilter
EMPTY_STRING_ARRAY
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
FALSE
Singleton instance of false filter.- Since:
- 1.3
-
INSTANCE
Singleton instance of false filter. Please use the identical FalseFileFilter.FALSE constant. The new name is more JDK 1.5 friendly as it doesn't clash with other values when using static imports.
-
-
Constructor Details
-
FalseFileFilter
protected FalseFileFilter()Restrictive constructor.
-
-
Method Details
-
accept
Returns false.- Specified by:
accept
in interfaceFileFilter
- Specified by:
accept
in interfaceIOFileFilter
- Parameters:
file
- the file to check (ignored)- Returns:
- false
-
accept
Returns false.- Specified by:
accept
in interfaceFilenameFilter
- Specified by:
accept
in interfaceIOFileFilter
- Parameters:
dir
- the directory to check (ignored)name
- the file name (ignored)- Returns:
- false
-