| Modifier and Type | Field and Description |
|---|---|
protected Pattern |
regex
the internal regex pattern
|
| Constructor and Description |
|---|
PathPredicate(String pattern)
Creates a new default path filter
|
protected final Pattern regex
public PathPredicate(String pattern)
| Pattern | Matches | /foo | exactly "/foo" | /foo.* | all paths starting with "foo." | foo.* | all files starting with "foo." | /foo/* | all direct children of /foo | /foo/** | all children of /foo
pattern - the patternpublic boolean evaluate(Object item)
Predicateevaluate in interface Predicateitem - some objectPredicate.evaluate(java.lang.Object)Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.