public class Filter extends Object
| Constructor and Description |
|---|
Filter(String fieldName,
FilterTypes type,
Operator operator,
List<String> values,
Category category)
creates a new filter
|
| Modifier and Type | Method and Description |
|---|---|
static Filter |
create(String field,
String value,
Category category)
Creates a Filter of
FilterTypes.STRING and Operator.like |
static Filter |
create(String field,
String value,
Category category,
FilterTypes type)
Creates a Filter with
Operator.like |
boolean |
equals(Object o) |
Category |
getCategory() |
String |
getFieldName() |
Operator |
getOperator() |
FilterTypes |
getType() |
List<String> |
getValues() |
int |
hashCode() |
static List<Filter> |
initListWith(Filter filter)
Creates a List of Filters initialized with a single filter
|
void |
setCategory(Category category) |
void |
setFieldName(String fieldName) |
void |
setOperator(Operator operator) |
void |
setType(FilterTypes type) |
void |
setValues(List<String> values) |
public Filter(String fieldName, FilterTypes type, Operator operator, List<String> values, Category category)
fieldName - String, the name if fieldtype - the FilterTypesoperator - the Operatorvalues - List of valuescategory - the Category of the filterpublic static Filter create(String field, String value, Category category)
FilterTypes.STRING and Operator.likefield - String, the name if fieldvalue - String, the value of the filtercategory - the Category of the filterpublic static Filter create(String field, String value, Category category, FilterTypes type)
Operator.likefield - String, the name if fieldvalue - String, the value of the filtercategory - the Category of the filtertype - the FilterTypespublic static List<Filter> initListWith(Filter filter)
filter - Filterpublic String getFieldName()
public FilterTypes getType()
FilterTypespublic void setFieldName(String fieldName)
fieldName - the field name to be setpublic void setType(FilterTypes type)
type - the type to be setpublic void setOperator(Operator operator)
operator - the operator to be setpublic void setCategory(Category category)
category - the category to be setCopyright © 2019–2022 Dominokit. All rights reserved.