- All Implemented Interfaces:
- java.io.FilenameFilter
- Enclosing class:
- FileFunctions
private static class FileFunctions.WildcardFilter
extends java.lang.Object
implements java.io.FilenameFilter
Filter for a file path maybe with wildcards in the directory path.
Note: The FilenameFilter
is better as the FileFilter
because the File.list(FilenameFilter)
builds a File instance only if the name is tested positively.
In opposite the java.io.File#list(FileFilter)
builds a File instance anytime before the test.
The difference may be marginal.But java.io.File#list(FileFilter)
produces some more instances in the heap,
which are unnecessary.