org.apache.commons.io.filefilter
Class FalseFileFilter

java.lang.Object
  extended byorg.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: 155419 $ $Date: 2005-02-26 13:02:41 +0000 (Sat, 26 Feb 2005) $

Field Summary
static IOFileFilter INSTANCE
          Singleton instance of false filter
 
Constructor Summary
protected FalseFileFilter()
          Restrictive consructor.
 
Method Summary
 boolean accept(File file)
          Returns false.
 boolean accept(File dir, String name)
          Returns false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final IOFileFilter INSTANCE
Singleton instance of false filter

Constructor Detail

FalseFileFilter

protected FalseFileFilter()
Restrictive consructor.

Method Detail

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


Copyright © 2002-2006 The Apache Software Foundation. All Rights Reserved.