Interface ConditionalFileFilter

All Known Implementing Classes:
AndFileFilter, OrFileFilter

public interface ConditionalFileFilter
Defines operations for conditional file filters.
Since:
2.4
Author:
This code was originally ported from Apache Commons IO File Filter
See Also:
  • "https://commons.apache.org/proper/commons-io/"
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds the specified file filter to the list of file filters at the end of the list.
    Returns this conditional file filter's list of file filters.
    boolean
    Removes the specified file filter.
    void
    Sets the list of file filters, replacing any previously configured file filters on this filter.
  • Method Details

    • addFileFilter

      void addFileFilter(FileFilter fileFilter)
      Adds the specified file filter to the list of file filters at the end of the list.
      Parameters:
      fileFilter - the filter to be added
    • getFileFilters

      Returns this conditional file filter's list of file filters.
      Returns:
      the file filter list
    • removeFileFilter

      boolean removeFileFilter(FileFilter fileFilter)
      Removes the specified file filter.
      Parameters:
      fileFilter - filter to be removed
      Returns:
      true if the filter was found in the list, false otherwise
    • setFileFilters

      void setFileFilters(List<FileFilter> fileFilters)
      Sets the list of file filters, replacing any previously configured file filters on this filter.
      Parameters:
      fileFilters - the list of filters