Class SuffixFilter

  • All Implemented Interfaces:
    Filter

    public class SuffixFilter
    extends Object
    implements Filter
    A file filter based on its suffix
    • Constructor Detail

      • SuffixFilter

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

      • 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