Class SuffixFilter

java.lang.Object
com.thoughtworks.qdox.directorywalker.SuffixFilter
All Implemented Interfaces:
Filter

public class SuffixFilter extends Object implements Filter
A file filter based on its suffix
  • Field Details

    • suffixFilter

      private String suffixFilter
  • Constructor Details

    • SuffixFilter

      public SuffixFilter(String suffixFilter)
      Parameters:
      suffixFilter - the suffix which will be matched for every file, must not be null
  • Method Details

    • filter

      public boolean filter(File file)
      Specified by:
      filter in interface Filter
      Parameters:
      file - the file to filter
      Returns:
      true if the file ends with the specified suffix, otherwise false