net.sf.mmm.util.file.base
Class PlainFileFilter

java.lang.Object
  extended by net.sf.mmm.util.file.base.PlainFileFilter
All Implemented Interfaces:
FileFilter

public final class PlainFileFilter
extends Object
implements FileFilter

This class represents a file-filter that only accepts "plain files". Use getInstance() to get the instance of this filter.

Since:
1.0.1
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Field Summary
private static FileFilter INSTANCE
          the singleton instance
 
Constructor Summary
private PlainFileFilter()
          The constructor.
 
Method Summary
 boolean accept(File file)
          
static FileFilter getInstance()
          This method gets the singleton instance of this file-filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

private static final FileFilter INSTANCE
the singleton instance

Constructor Detail

PlainFileFilter

private PlainFileFilter()
The constructor.

Method Detail

accept

public boolean accept(File file)

Specified by:
accept in interface FileFilter

getInstance

public static FileFilter getInstance()
This method gets the singleton instance of this file-filter.

Returns:
the filter.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.