Class Finder.NameFilter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.regex.Pattern pattern
      The pattern to filter the filenames with.
    • Constructor Summary

      Constructors 
      Constructor Description
      NameFilter​(java.lang.String pattern)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean pass​(java.io.File file)
      Returns for the given file whether this file passes this filter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pattern

        private final java.util.regex.Pattern pattern
        The pattern to filter the filenames with.
    • Constructor Detail

      • NameFilter

        NameFilter​(java.lang.String pattern)
    • Method Detail

      • pass

        public boolean pass​(java.io.File file)
        Description copied from class: Finder.Filter
        Returns for the given file whether this file passes this filter.
        Specified by:
        pass in class Finder.Filter