org.apache.commons.io.filefilter
Class TrueFileFilter
java.lang.Object
|
+--org.apache.commons.io.filefilter.TrueFileFilter
- All Implemented Interfaces:
- FileFilter, FilenameFilter, IOFileFilter
- public class TrueFileFilter
- extends Object
- implements IOFileFilter
A file filter that always returns true.
- Since:
- Commons IO 1.0
- Version:
- $Revision: 471628 $ $Date: 2006-11-05 20:06:45 -0800 (Sun, 05 Nov 2006) $
- Author:
- Stephen Colebourne
Constructor Summary |
protected |
TrueFileFilter()
Restrictive consructor. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
TRUE
public static final IOFileFilter TRUE
- Singleton instance of true filter.
- Since:
- Commons IO 1.3
INSTANCE
public static final IOFileFilter INSTANCE
- Singleton instance of true filter.
Please use the identical TrueFileFilter.TRUE constant.
The new name is more JDK 1.5 friendly as it doesn't clash with other
values when using static imports.
TrueFileFilter
protected TrueFileFilter()
- Restrictive consructor.
accept
public boolean accept(File file)
- Returns true.
- Specified by:
accept
in interface IOFileFilter
- Parameters:
file
- the file to check- Returns:
- true
accept
public boolean accept(File dir,
String name)
- Returns true.
- Specified by:
accept
in interface IOFileFilter
- Parameters:
dir
- the directory to checkname
- the filename- Returns:
- true