Class FileUtil.RegexFileFilter

  • All Implemented Interfaces:
    Enclosing class:

    public static class FileUtil.RegexFileFilter
    extends java.lang.Object
    File filter that accepts files with the name specified by a regular expression.
    • Constructor Summary

      Constructor Description
      RegexFileFilter​(java.lang.String pattern)
      Specifies the regular expression to filter files.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​( file)  
      • Methods inherited from class java.lang.Object

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

      • RegexFileFilter

        public RegexFileFilter​(@NotNull
                               java.lang.String pattern)
        Specifies the regular expression to filter files.
        pattern - the regular expression, case insensitive.
    • Method Detail

      • accept

        public boolean accept​( file)
        Specified by:
        accept in interface