Object
FilePredicates
File predicates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionanyExtensionOf
(String... targetExtensions) Return file predicate which checks if a given file extension is any from the list of target extensionsisContentEquals
(Path target) Return file predicate which checks if content of a given file equals content of target file.Return file predicate which checks if a given file name matches regular expression.
-
Constructor Details
-
FilePredicates
public FilePredicates()
-
-
Method Details
-
isContentEquals
Return file predicate which checks if content of a given file equals content of target file. -
anyExtensionOf
Return file predicate which checks if a given file extension is any from the list of target extensions -
match
Return file predicate which checks if a given file name matches regular expression.To match only image files following regexp can be used ".*\\.(png|jpg)".
-