Class FileUtil.ExpressionFileFilter

  • All Implemented Interfaces:
    java.util.function.Predicate<java.nio.file.Path>
    Enclosing class:
    FileUtil

    protected static class FileUtil.ExpressionFileFilter
    extends java.lang.Object
    implements java.util.function.Predicate<java.nio.file.Path>
    simple file filter that lists all files that match a regular expression
    • Constructor Summary

      Constructors 
      Constructor Description
      ExpressionFileFilter​(java.lang.String _regExp)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean test​(java.nio.file.Path checkFile)
      true if a file matches a regular expression
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • ExpressionFileFilter

        public ExpressionFileFilter​(java.lang.String _regExp)
        Parameters:
        _regExp - the simplified regular expression to match
    • Method Detail

      • test

        public boolean test​(java.nio.file.Path checkFile)
        true if a file matches a regular expression
        Specified by:
        test in interface java.util.function.Predicate<java.nio.file.Path>
        See Also:
        FileFilter.accept(java.io.File)