Class FileSuffixPredicate

  • All Implemented Interfaces:
    org.jboss.forge.furnace.util.Predicate<File>

    public class FileSuffixPredicate
    extends Object
    implements org.jboss.forge.furnace.util.Predicate<File>
    Accepts a file based on its trailing filename.
    Author:
    Lincoln Baxter, III
    • Constructor Detail

      • FileSuffixPredicate

        public FileSuffixPredicate​(String suffixPattern)
        Create a new FileSuffixPredicate using the given regular expression to match the end of the filename.
    • Method Detail

      • accept

        public boolean accept​(File file)
        Specified by:
        accept in interface org.jboss.forge.furnace.util.Predicate<File>