Module java.base
Package java.nio.file

Interface PathMatcher

    • Method Summary

      Modifier and Type Method Description
      boolean matches​(Path path)
      Tells if given path matches this matcher's pattern.
    • Method Detail

      • matches

        boolean matches​(Path path)
        Tells if given path matches this matcher's pattern.
        Parameters:
        path - the path to match
        Returns:
        true if, and only if, the path matches this matcher's pattern