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
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Object item)
Evaluates the predicate for the given object.
|
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)
Predicate
evaluate
in interface Predicate
item
- some objectPredicate.evaluate(java.lang.Object)
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.