| Constructor and Description |
|---|
QueryFilter(String field,
String operator,
String value)
Create a new query filter with the specified options.
|
| Modifier and Type | Method and Description |
|---|---|
static QueryFilter |
and(QueryFilter... queryFilters)
Get a query filter that is the ANDed combination of the specified filters.
|
QueryFilter |
and(QueryFilter q)
Get a query filter that is the ANDed combination of this filter and the specified one.
|
static QueryFilter |
or(QueryFilter... queryFilters)
Get a query filter that is the ORed combination of the specified filters.
|
QueryFilter |
or(QueryFilter q)
Get a query filter that is the ORed combination of this filter and the specified one.
|
String |
toString()
Get the string representation of this query filter.
|
public QueryFilter and(QueryFilter q)
q - the filter to be ANDedpublic QueryFilter or(QueryFilter q)
q - the filter to be ORedpublic String toString()
Examples:
public static QueryFilter and(QueryFilter... queryFilters)
queryFilters - one or more query filters to be ANDed togetherpublic static QueryFilter or(QueryFilter... queryFilters)
queryFilters - one or more query filters to be ORed together