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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean couldHoldSelected​(java.lang.String pathname)
      Determines whether a directory could contain selected paths.
      boolean isSelected​(java.lang.String pathname)
      Determines whether a path is selected for deletion.
    • Method Detail

      • isSelected

        boolean isSelected​(java.lang.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​(java.lang.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..