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 Type
    Method
    Description
    boolean
    Determines whether a directory could contain selected paths.
    boolean
    isSelected(String pathname)
    Determines whether a path is selected for deletion.
  • Method Details

    • isSelected

      boolean isSelected(String pathname)
      Determines whether a path is selected for deletion.
      Parameters:
      pathname - The pathname to test, must not be null.
      Returns:
      true if the given path is selected for deletion, false otherwise.
    • couldHoldSelected

      boolean couldHoldSelected(String pathname)
      Determines whether a directory could contain selected paths.
      Parameters:
      pathname - The directory pathname to test, must not be null.
      Returns:
      true if the given directory might contain selected paths, false if the directory will definitively not contain selected paths..