Top Description Fields Constructors Methods
org.apache.commons.io.filefilter

public Class FalseFileFilter

extends Object
implements IOFileFilter
Class Inheritance
All Implemented Interfaces
org.apache.commons.io.filefilter.IOFileFilter, java.io.FilenameFilter, java.io.FileFilter
Imports
java.io.File

A file filter that always returns false.
Author
Stephen Colebourne
Since
Commons IO 1.0
Version
$Revision: 471628 $ $Date: 2006-11-06 05:06:45 +0100 (Mo, 06 Nov 2006) $

Field Summary

Modifier and TypeField and Description
public static final IOFileFilter
FALSE

Singleton instance of false filter.

public static final IOFileFilter
INSTANCE

Singleton instance of false filter.

Constructor Summary

AccessConstructor and Description
protected
FalseFileFilter()

Restrictive consructor.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

false
accept
(File
the file to check
file
)

Implements org.apache.commons.io.filefilter.IOFileFilter.accept.

Returns false.
public boolean

Returns:

false
accept
(File
the directory to check
dir
,
String
the filename
name
)

Implements org.apache.commons.io.filefilter.IOFileFilter.accept.

Returns false.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FALSEback to summary
public static final IOFileFilter FALSE

Singleton instance of false filter.

Since
Commons IO 1.3
INSTANCEback to summary
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.

Constructor Detail

FalseFileFilterback to summary
protected FalseFileFilter()

Restrictive consructor.

Method Detail

acceptback to summary
public boolean accept(File file)

Implements org.apache.commons.io.filefilter.IOFileFilter.accept.

Returns false.

Parameters
file:File

the file to check

Returns:boolean

false

acceptback to summary
public boolean accept(File dir, String name)

Implements org.apache.commons.io.filefilter.IOFileFilter.accept.

Returns false.

Parameters
dir:File

the directory to check

name:String

the filename

Returns:boolean

false