|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(File file)
Returns true. |
boolean |
accept(File dir,
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(File file)
accept
in interface FileFilter
accept
in interface IOFileFilter
file
- the file to check (ignored)
public boolean accept(File dir, String name)
accept
in interface 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 |