public class MapFileFilter
extends net.sf.japi.util.filter.file.EndingFileFilter
Constructor and Description |
---|
MapFileFilter(boolean acceptDirectories,
@NotNull java.lang.String description,
java.lang.String... endings)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(@NotNull java.io.File pathName) |
static boolean |
isPerformingRealChecks()
Get whether to actually perform real checks or just file endings.
|
static void |
setPerformingRealChecks(boolean performingRealChecks)
Set whether to actually perform real checks or just file endings.
|
public MapFileFilter(boolean acceptDirectories, @NotNull @NotNull java.lang.String description, @NotNull java.lang.String... endings)
acceptDirectories
- whether the file filter should accept
directoriesdescription
- the description to use for Swingendings
- the endings to accept, including their periodpublic static void setPerformingRealChecks(boolean performingRealChecks)
performingRealChecks
- true
for performing real checks,
false
to compare only file endingspublic static boolean isPerformingRealChecks()
true
for performing real checks, false
to compare
only file endingspublic boolean accept(@NotNull @NotNull java.io.File pathName)
accept
in interface java.io.FileFilter
accept
in interface net.sf.japi.util.filter.Filter<java.io.File>
accept
in class net.sf.japi.util.filter.file.EndingFileFilter