org.apache.commons.io.filefilter
Class FalseFileFilter
java.lang.Object
|
+--org.apache.commons.io.filefilter.FalseFileFilter
- All Implemented Interfaces:
- FileFilter, FilenameFilter, IOFileFilter
- public class FalseFileFilter
- extends Object
- implements IOFileFilter
A file filter that always returns false.
- Since:
- Commons IO 1.0
- Version:
- $Revision: 471628 $ $Date: 2006-11-05 20:06:45 -0800 (Sun, 05 Nov 2006) $
- Author:
- Stephen Colebourne
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
FALSE
public static final IOFileFilter FALSE
- Singleton instance of false filter.
- Since:
- Commons IO 1.3
INSTANCE
public static final IOFileFilter 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.
FalseFileFilter
protected FalseFileFilter()
- Restrictive consructor.
accept
public boolean accept(File file)
- Returns false.
- Specified by:
accept
in interface IOFileFilter
- Parameters:
file
- the file to check- Returns:
- false
accept
public boolean accept(File dir,
String name)
- Returns false.
- Specified by:
accept
in interface IOFileFilter
- Parameters:
dir
- the directory to checkname
- the filename- Returns:
- false