org.apache.commons.io.filefilter

Class FalseFileFilter

Implemented Interfaces:
FileFilter, FilenameFilter, IOFileFilter

public class FalseFileFilter
extends java.lang.Object
implements IOFileFilter

A file filter that always returns false.
Version:
$Revision: 1.7 $ $Date: 2004/02/23 04:37:57 $
Authors:
Henri Yandell
Stephen Colebourne
Since:
Commons IO 1.0

Field Summary

static IOFileFilter
INSTANCE
Singleton instance of false filter

Constructor Summary

FalseFileFilter()
Restrictive consructor.

Method Summary

boolean
accept(File file)
Returns false.
boolean
accept(File dir, String name)
Returns false.

Field Details

INSTANCE

public static final IOFileFilter INSTANCE
Singleton instance of false filter

Constructor Details

FalseFileFilter

protected FalseFileFilter()
Restrictive consructor.

Method Details

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 check
name - the filename
Returns:
false