-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPathMatcher.java
More file actions
49 lines (47 loc) · 771 Bytes
/
PathMatcher.java
File metadata and controls
49 lines (47 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.nio.file;
/**
* An interface that is implemented by objects that perform match operations on
* paths.
*
* @since 1.7
*
* @see FileSystem#getPathMatcher
* @see Files#newDirectoryStream(Path,String)
*/
@FunctionalInterface
public interface PathMatcher {
/**
* Tells if given path matches this matcher's pattern.
*
* @param path
* the path to match
*
* @return {@code true} if, and only if, the path matches this
* matcher's pattern
*/
boolean matches(Path path);
}