? TrueFileFilter
java.lang.Object
org.apache.commons.io.filefilter.TrueFileFilter
- ????????:
FileFilter
,FilenameFilter
,Serializable
,PathFilter
,IOFileFilter
A file filter that always returns true.
- ???????:
- 1.0
- ????:
-
????
????????????static final IOFileFilter
Singleton instance of true filter.static final IOFileFilter
Singleton instance of true filter.???????? org.apache.commons.io.filefilter.IOFileFilter
EMPTY_STRING_ARRAY
-
?????
??? -
????
??????????boolean
Returns true.boolean
Returns true.accept
(Path file, BasicFileAttributes attributes) Returns true.and
(IOFileFilter fileFilter) Creates a new "and" filter with this filter.negate()
Creates a new "not" filter with this filter.or
(IOFileFilter fileFilter) Creates a new "or" filter with this filter.toString()
-
??????
-
TRUE
Singleton instance of true filter.- ???????:
- 1.3
-
INSTANCE
Singleton instance of true filter. Please use the identical TrueFileFilter.TRUE constant. The new name is more JDK 1.5 friendly as it doesn't clash with other values when using static imports.
-
-
???????
-
TrueFileFilter
protected TrueFileFilter()Restrictive constructor.
-
-
??????
-
accept
Returns true.- ???:
accept
????FileFilter
- ???:
accept
????IOFileFilter
- ??:
file
- the file to check (ignored)- ??:
- true
-
accept
Returns true.- ???:
accept
????FilenameFilter
- ???:
accept
????IOFileFilter
- ??:
dir
- the directory to check (ignored)name
- the file name (ignored)- ??:
- true
-
accept
Returns true.- ???:
accept
????IOFileFilter
- ???:
accept
????PathFilter
- ??:
file
- the file to check (ignored)attributes
- the file's basic attributes (TODO may be null).- ??:
- true
- ???????:
- 2.9.0
-
negate
????????:IOFileFilter
Creates a new "not" filter with this filter.- ???:
negate
????IOFileFilter
- ??:
- a new filter.
-
or
????????:IOFileFilter
Creates a new "or" filter with this filter.- ???:
or
????IOFileFilter
- ??:
fileFilter
- the filter to "or".- ??:
- a new filter.
-
and
????????:IOFileFilter
Creates a new "and" filter with this filter.- ???:
and
????IOFileFilter
- ??:
fileFilter
- the filter to "and".- ??:
- a new filter.
-
toString
-