public class StringFilter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StringFilter.Strategy
Defines the filtering strategy.
|
Constructor and Description |
---|
StringFilter(List<String> filter)
Creates a new filter to apply on some data.
|
StringFilter(List<String> filter,
StringFilter.Strategy strategy)
Creates a new filter to apply on some data,
given a specific strategy (AND, OR).
|
Modifier and Type | Method and Description |
---|---|
boolean |
filter(Object data)
Filters data according to a set of restrictions and a specific strategy.
|
public StringFilter(List<String> filter)
filter
- list with filters to applypublic StringFilter(List<String> filter, StringFilter.Strategy strategy)
filter
- list with filters to applystrategy
- type of strategy (AND, OR)public boolean filter(Object data)
data
- Object with data to filter