public abstract static class AbstractFilter.AbstractFilterBuilder<B extends AbstractFilter.AbstractFilterBuilder<B>>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_ON_MATCH |
static java.lang.String |
ATTR_ON_MISMATCH |
private Filter.Result |
onMatch |
private Filter.Result |
onMismatch |
Constructor and Description |
---|
AbstractFilterBuilder() |
Modifier and Type | Method and Description |
---|---|
B |
asBuilder() |
Filter.Result |
getOnMatch() |
Filter.Result |
getOnMismatch() |
B |
setOnMatch(Filter.Result onMatch)
Sets the Result to return when the filter matches.
|
B |
setOnMismatch(Filter.Result onMismatch)
Sets the Result to return when the filter does not match.
|
public static final java.lang.String ATTR_ON_MISMATCH
public static final java.lang.String ATTR_ON_MATCH
@PluginBuilderAttribute(value="onMatch") private Filter.Result onMatch
@PluginBuilderAttribute(value="onMismatch") private Filter.Result onMismatch
public Filter.Result getOnMatch()
public Filter.Result getOnMismatch()
public B setOnMatch(Filter.Result onMatch)
onMatch
- the Result to return when the filter matches.public B setOnMismatch(Filter.Result onMismatch)
onMismatch
- the Result to return when the filter does not match.public B asBuilder()