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
,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.
@FunctionalInterface public interface PathFilter
A filter forPath
s.- Since:
- 2.9.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.nio.file.FileVisitResult
accept(java.nio.file.Path path, java.nio.file.attribute.BasicFileAttributes attributes)
Tests whether or not to include the specified Path in a result.
-
-
-
Method Detail
-
accept
java.nio.file.FileVisitResult accept(java.nio.file.Path path, java.nio.file.attribute.BasicFileAttributes attributes)
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
-
-