public class TrueFileFilter extends java.lang.Object implements IOFileFilter, java.io.Serializable
Serialization is deprecated and will be removed in 3.0.
FileFilterUtils.trueFileFilter(),
Serialized Form| Modifier 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 and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File file)
Returns true.
|
boolean |
accept(java.io.File dir,
java.lang.String name)
Returns true.
|
java.nio.file.FileVisitResult |
accept(java.nio.file.Path file,
java.nio.file.attribute.BasicFileAttributes attributes)
Returns true.
|
IOFileFilter |
and(IOFileFilter fileFilter)
Creates a new "and" filter with this filter.
|
IOFileFilter |
negate()
Creates a new "not" filter with this filter.
|
IOFileFilter |
or(IOFileFilter fileFilter)
Creates a new "or" filter with this filter.
|
java.lang.String |
toString() |
public static final IOFileFilter TRUE
public static final IOFileFilter INSTANCE
public boolean accept(java.io.File file)
accept in interface java.io.FileFilteraccept in interface IOFileFilterfile - the file to check (ignored)public boolean accept(java.io.File dir,
java.lang.String name)
accept in interface java.io.FilenameFilteraccept in interface IOFileFilterdir - the directory to check (ignored)name - the file name (ignored)public java.nio.file.FileVisitResult accept(java.nio.file.Path file,
java.nio.file.attribute.BasicFileAttributes attributes)
accept in interface PathFilteraccept in interface IOFileFilterfile - the file to check (ignored)attributes - the file's basic attributes (TODO may be null).public IOFileFilter and(IOFileFilter fileFilter)
IOFileFilterand in interface IOFileFilterfileFilter - the filter to "and".public IOFileFilter negate()
IOFileFilternegate in interface IOFileFilterpublic IOFileFilter or(IOFileFilter fileFilter)
IOFileFilteror in interface IOFileFilterfileFilter - the filter to "or".public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved