Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.io.filefilter
Class FalseFileFilter

    java.lang.Object
      org.apache.commons.io.filefilter.FalseFileFilter

All Implemented Interfaces:
  FileFilter, FilenameFilter, Serializable, IOFileFilter

    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
See Also:
  Serialized Form

Field Summary
`static IOFileFilter` | `FALSE` Singleton instance of false filter.
`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

### 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.

  Specified by:
    `accept` in interface `FileFilter`
  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 `FilenameFilter`
  Specified by:
    `accept` in interface `IOFileFilter`
  Parameters:
    `dir` - the directory to check
    `name` - the filename
  Returns:
    false

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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