public abstract class RegexFilter extends Object implements Serializable
acceptByDefault()
and entriesArePositiveByDefault()
.Constructor and Description |
---|
RegexFilter() |
RegexFilter(TreeLogger logger,
List<String> values) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
acceptByDefault()
If no pattern matches, whether the query should be considered as an accept.
|
void |
add(String regex) |
void |
addAll(List<String> newValues) |
void |
addAll(RegexFilter regexFilter) |
protected abstract boolean |
entriesArePositiveByDefault()
If a pattern is not preceded by + or -, whether the query should be
considered positive.
|
List<String> |
getValues() |
boolean |
isEmpty() |
boolean |
isIncluded(String query) |
boolean |
isIncluded(TreeLogger logger,
String query) |
public RegexFilter()
public RegexFilter(TreeLogger logger, List<String> values) throws UnableToCompleteException
UnableToCompleteException
public boolean isEmpty()
public void add(String regex)
public void addAll(RegexFilter regexFilter)
public boolean isIncluded(String query)
public boolean isIncluded(TreeLogger logger, String query)
protected abstract boolean acceptByDefault()
protected abstract boolean entriesArePositiveByDefault()
Copyright © 2018. All rights reserved.