|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.io.filefilter.TrueFileFilter
public class TrueFileFilter
A file filter that always returns true.
FileFilterUtils.trueFileFilter()
,
Serialized FormField Summary | |
---|---|
static IOFileFilter |
INSTANCE
Singleton instance of true filter. |
static IOFileFilter |
TRUE
Singleton instance of true filter. |
Constructor Summary | |
---|---|
protected |
TrueFileFilter()
Restrictive consructor. |
Method Summary | |
---|---|
boolean |
accept(java.io.File file)
Returns true. |
boolean |
accept(java.io.File dir,
java.lang.String name)
Returns true. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final IOFileFilter TRUE
public static final IOFileFilter INSTANCE
Constructor Detail |
---|
protected TrueFileFilter()
Method Detail |
---|
public boolean accept(java.io.File file)
accept
in interface java.io.FileFilter
accept
in interface IOFileFilter
file
- the file to check (ignored)
public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
accept
in interface IOFileFilter
dir
- the directory to check (ignored)name
- the filename (ignored)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |