public class MultiplePathFilterBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
defaultVal |
private java.util.List<PathFilter> |
filters |
private java.util.List<java.lang.Boolean> |
includeFlags |
Constructor and Description |
---|
MultiplePathFilterBuilder(boolean defaultVal) |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(PathFilter filter,
boolean include)
Add a filter to this builder.
|
PathFilter |
create()
Create the path filter from this builder's current state.
|
boolean |
isEmpty()
Determine if this filter builder is empty (i.e.
|
private final java.util.List<PathFilter> filters
private final java.util.List<java.lang.Boolean> includeFlags
private final boolean defaultVal
public void addFilter(PathFilter filter, boolean include)
filter
- the filter to addinclude
- true
if matching paths should be included, false
for excludedpublic PathFilter create()
public boolean isEmpty()
true
if this builder is empty, false
otherwise