org.apache.commons.io.filefilter

Class FalseFileFilter

public class FalseFileFilter extends Object implements IOFileFilter, Serializable

A file filter that always returns false.

Since: Commons IO 1.0

Version: $Revision: 587978 $ $Date: 2007-10-24 20:36:51 +0100 (Wed, 24 Oct 2007) $

Author: Stephen Colebourne

Field Summary
static IOFileFilterFALSE
Singleton instance of false filter.
static IOFileFilterINSTANCE
Singleton instance of false filter.
Constructor Summary
protected FalseFileFilter()
Restrictive consructor.
Method Summary
booleanaccept(File file)
Returns false.
booleanaccept(File dir, String name)
Returns false.

Field Detail

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.

Constructor Detail

FalseFileFilter

protected FalseFileFilter()
Restrictive consructor.

Method Detail

accept

public boolean accept(File file)
Returns false.

Parameters: file the file to check

Returns: false

accept

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

Parameters: dir the directory to check name the filename

Returns: false

Copyright (c) 2002-2011 Apache Software Foundation