Class PathMatchers


  • public class PathMatchers
    extends Object
    Common PathMatcher implementations.
    • Constructor Detail

      • PathMatchers

        public PathMatchers()
    • Method Detail

      • getNonHidden

        public static PathMatcher getNonHidden()
      • getSearchRoot

        public static Path getSearchRoot​(String pattern)
        Provide the non-glob / non-regex prefix on the pattern as a Path reference.
        Parameters:
        pattern - the pattern to test
        Returns:
        the Path representing the search root for the pattern provided.
      • isAbsolute

        public static boolean isAbsolute​(String pattern)
        Tests if provided pattern is an absolute reference (or not)
        Parameters:
        pattern - the pattern to test
        Returns:
        true if pattern is an absolute reference.