public class TrueFileFilter extends Object implements IOFileFilter, Serializable
FileFilterUtils.trueFileFilter()
,
Serialized FormModifier and Type | Field and Description |
---|---|
static IOFileFilter |
INSTANCE
Singleton instance of true filter.
|
static IOFileFilter |
TRUE
Singleton instance of true filter.
|
EMPTY_STRING_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
TrueFileFilter()
Restrictive constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File file)
Returns true.
|
boolean |
accept(File dir,
String name)
Returns true.
|
public static final IOFileFilter TRUE
public static final IOFileFilter INSTANCE
protected TrueFileFilter()
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 file name (ignored)Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.