Package org.apache.commons.vfs2.filter
Class TrueFileFilter
- java.lang.Object
-
- org.apache.commons.vfs2.filter.TrueFileFilter
-
- All Implemented Interfaces:
java.io.Serializable,FileFilter
public class TrueFileFilter extends java.lang.Object implements FileFilter, java.io.Serializable
A file filter that always returns true.- Since:
- 2.4
- Author:
- This code was originally ported from Apache Commons IO File Filter
- See Also:
- "https://commons.apache.org/proper/commons-io/", Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static FileFilterINSTANCESingleton instance of true filter.static FileFilterTRUEDeprecated.UseINSTANCE.
-
Constructor Summary
Constructors Modifier Constructor Description protectedTrueFileFilter()Restrictive constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(FileSelectInfo fileSelectInfo)Returns true.
-
-
-
Field Detail
-
INSTANCE
public static final FileFilter INSTANCE
Singleton instance of true filter.- Since:
- 2.10.0
-
TRUE
@Deprecated public static final FileFilter TRUE
Deprecated.UseINSTANCE.Singleton instance of true filter.
-
-
Constructor Detail
-
TrueFileFilter
protected TrueFileFilter()
Restrictive constructor.
-
-
Method Detail
-
accept
public boolean accept(FileSelectInfo fileSelectInfo)
Returns true.- Specified by:
acceptin interfaceFileFilter- Parameters:
fileSelectInfo- the file to check (ignored)- Returns:
- Always
true
-
-