Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# PathMatcher

` public interface PathMatcher `   
` `

|---|
| java.nio.file.PathMatcher |

<br />

*** ** * ** ***

An interface that is implemented by objects that perform match operations on paths.
**See also:**

- `https://developer.android.com/reference/java/nio/file/FileSystem#getPathMatcher(java.lang.String)`
- `https://developer.android.com/reference/java/nio/file/Files#newDirectoryStream(java.nio.file.Path,%20java.lang.String)`

## Summary

| ### Public methods ||
|---|---|
| ` abstract boolean` | ` https://developer.android.com/reference/java/nio/file/PathMatcher#matches(java.nio.file.Path)(https://developer.android.com/reference/java/nio/file/Path path) ` Tells if given path matches this matcher's pattern. |

## Public methods

### matches

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract boolean matches (Path path)
```

Tells if given path matches this matcher's pattern.

<br />

| Parameters ||
|---|---|
| `path` | `Path`: the path to match <br /> |

| Returns ||
|---|---|
| `boolean` | `true` if, and only if, the path matches this matcher's pattern <br /> |