public class PathPattern extends Object implements IStringPattern
WildcardFilePattern that can contain * and ?.
In addition, each element may contain a double asterisks ** to specify any sub-directory structure.| Constructor and Description |
|---|
PathPattern(String pattern)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
matches(Collection<PathPattern> patterns,
List<String> path)
Return true if the given path elements match at least one of the given pattern.
|
static boolean |
matches(Collection<PathPattern> patterns,
String[] path)
Return true if the given path elements match at least one of the given pattern.
|
boolean |
matches(List<String> path)
Return true if the given list of path elements is matching this pattern.
|
boolean |
matches(String path)
Return true if the given string matches this pattern.
|
boolean |
matches(String[] path)
Return true if the given list of path elements is matching this pattern.
|
public PathPattern(String pattern)
public boolean matches(String path)
IStringPatternmatches in interface IStringPatternpublic boolean matches(List<String> path)
public boolean matches(String[] path)
public static boolean matches(Collection<PathPattern> patterns, List<String> path)
public static boolean matches(Collection<PathPattern> patterns, String[] path)
Copyright © 2019. All rights reserved.