Class PathMatchers.RegexPathMatcher

  • All Implemented Interfaces:
    java.nio.file.PathMatcher
    Enclosing class:
    PathMatchers

    static final class PathMatchers.RegexPathMatcher
    extends java.lang.Object
    implements java.nio.file.PathMatcher
    PathMatcher that matches the toString() form of a Path against a regex Pattern.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.regex.Pattern pattern  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RegexPathMatcher​(java.util.regex.Pattern pattern)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(java.nio.file.Path path)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • pattern

        private final java.util.regex.Pattern pattern
    • Constructor Detail

      • RegexPathMatcher

        private RegexPathMatcher​(java.util.regex.Pattern pattern)
    • Method Detail

      • matches

        public boolean matches​(java.nio.file.Path path)
        Specified by:
        matches in interface java.nio.file.PathMatcher
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object