Package org.apache.commons.io.file
Interface PathFilter
- All Known Subinterfaces:
IOFileFilter
- All Known Implementing Classes:
AbstractFileFilter,AgeFileFilter,AndFileFilter,CanExecuteFileFilter,CanReadFileFilter,CanWriteFileFilter,DelegateFileFilter,DirectoryFileFilter,EmptyFileFilter,FalseFileFilter,FileEqualsFileFilter,FileFileFilter,HiddenFileFilter,MagicNumberFileFilter,NameFileFilter,NotFileFilter,OrFileFilter,PathEqualsFileFilter,PathMatcherFileFilter,PathVisitorFileFilter,PrefixFileFilter,RegexFileFilter,SizeFileFilter,SuffixFileFilter,SymbolicLinkFileFilter,TrueFileFilter,WildcardFileFilter,WildcardFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A filter for
Paths.- Since:
- 2.9.0
-
Method Summary
Modifier and TypeMethodDescriptionaccept(Path path, BasicFileAttributes attributes) Tests whether or not to include the specified Path in a result.
-
Method Details
-
accept
Tests whether or not to include the specified Path in a result.- Parameters:
path- The Path to test.attributes- the file's basic attributes (TODO may be null).- Returns:
- a FileVisitResult
-