Package org.apache.commons.vfs2.filter
Class FalseFileFilter
- java.lang.Object
-
- org.apache.commons.vfs2.filter.FalseFileFilter
-
- All Implemented Interfaces:
java.io.Serializable
,FileFilter
public class FalseFileFilter extends java.lang.Object implements FileFilter, java.io.Serializable
A file filter that always returns false.- Since:
- 2.4
- Author:
- This code was originally ported from Apache Commons IO File Filter
- See Also:
- "https://commons.apache.org/proper/commons-io/", Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static FileFilter
FALSE
Deprecated.UseINSTANCE
.static FileFilter
INSTANCE
Singleton instance of false filter.
-
Constructor Summary
Constructors Modifier Constructor Description protected
FalseFileFilter()
Restrictive constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(FileSelectInfo fileSelectInfo)
Returns false.
-
-
-
Field Detail
-
INSTANCE
public static final FileFilter INSTANCE
Singleton instance of false filter.- Since:
- 2.10.0
-
FALSE
@Deprecated public static final FileFilter FALSE
Deprecated.UseINSTANCE
.Singleton instance of false filter.
-
-
Constructor Detail
-
FalseFileFilter
protected FalseFileFilter()
Restrictive constructor.
-
-
Method Detail
-
accept
public boolean accept(FileSelectInfo fileSelectInfo)
Returns false.- Specified by:
accept
in interfaceFileFilter
- Parameters:
fileSelectInfo
- the file to check (ignored)- Returns:
- Always
false
-
-