Interface Selector
- All Known Implementing Classes:
GlobSelector
interface Selector
Determines whether a path is selected for deletion. The pathnames used for method parameters will be relative to some
base directory and use
File.separatorChar as separator.-
Method Summary
Modifier and TypeMethodDescriptionbooleancouldHoldSelected(String pathname) Determines whether a directory could contain selected paths.booleanisSelected(String pathname) Determines whether a path is selected for deletion.
-
Method Details
-
isSelected
Determines whether a path is selected for deletion.- Parameters:
pathname- The pathname to test, must not benull.- Returns:
trueif the given path is selected for deletion,falseotherwise.
-
couldHoldSelected
Determines whether a directory could contain selected paths.- Parameters:
pathname- The directory pathname to test, must not benull.- Returns:
trueif the given directory might contain selected paths,falseif the directory will definitively not contain selected paths..
-