APIdia Launch Partner
Top Description Methods
java.nio.file

public Interface PathMatcher

Annotations
@FunctionalInterface

An interface that is implemented by objects that perform match operations on paths.
Since
1.7
See Also
FileSystem#getPathMatcher, Files#newDirectoryStream(Path, String)

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if, and only if, the path matches this matcher's pattern
matches
(Path
the path to match
path
)

Tells if given path matches this matcher's pattern.

Method Detail

matchesback to summary
public boolean matches(Path path)

Tells if given path matches this matcher's pattern.

Parameters
path:Path

the path to match

Returns:boolean

true if, and only if, the path matches this matcher's pattern