Added in API level 26

PathMatcher

@FunctionalInterface interface PathMatcher
java.nio.file.PathMatcher

An interface that is implemented by objects that perform match operations on paths.

Summary

Public methods
abstract Boolean
matches(path: Path!)

Tells if given path matches this matcher's pattern.

Public methods

matches

Added in API level 26
abstract fun matches(path: Path!): Boolean

Tells if given path matches this matcher's pattern.

Parameters
path Path!: the path to match
Return
Boolean true if, and only if, the path matches this matcher's pattern