BooleanSearchFilter
instead@Immutable @Deprecated public class ChainedSearchFilter extends Object implements SearchFilter
SearchFilter
s to be chained together, with the option to
specify the logical operator to apply between them.Modifier and Type | Class and Description |
---|---|
static class |
ChainedSearchFilter.Operator
Deprecated.
Logic operator to allow clients to specify whether to apply a logical AND or OR between the result of filters
|
Constructor and Description |
---|
ChainedSearchFilter(List<? extends SearchFilter> filters,
ChainedSearchFilter.Operator logicOperator)
Deprecated.
Constructs a chained search filter.
|
ChainedSearchFilter(List<? extends SearchFilter> filters,
List<ChainedSearchFilter.Operator> logicOperators)
Deprecated.
Constructs a chained search filter.
|
ChainedSearchFilter(SearchFilter... filters)
Deprecated.
Constructs a chained search filter that AND's the list of specified filters.
|
Modifier and Type | Method and Description |
---|---|
SearchFilter |
and(SearchFilter other)
Deprecated.
Combines this filter with the one specified, returning a new filter.
|
boolean |
equals(Object obj)
Deprecated.
|
SearchFilter |
expand()
Deprecated.
Expands this filter into a composite filter (that composes other filters).
|
List<SearchFilter> |
getFilters()
Deprecated.
|
String |
getKey()
Deprecated.
|
List<ChainedSearchFilter.Operator> |
getOperators()
Deprecated.
|
int |
hashCode()
Deprecated.
|
ChainedSearchFilter |
merge(ChainedSearchFilter other)
Deprecated.
|
SearchFilter |
or(SearchFilter other)
Deprecated.
Combines this filter with the one specified, returning a new filter.
|
String |
toString()
Deprecated.
|
public ChainedSearchFilter(List<? extends SearchFilter> filters, List<ChainedSearchFilter.Operator> logicOperators)
filters
- the filters. Nested ChainedSearchFilter
not supported.logicOperators
- the operator to appy for the corresponding filterIllegalArgumentException
- if specified filters is null or empty or if the size of filters differs from the size of logicOperators
or if one of the filters specified is a ChainedSearchFilter
public ChainedSearchFilter(List<? extends SearchFilter> filters, ChainedSearchFilter.Operator logicOperator)
filters
- the filters. Nested ChainedSearchFilter
not supported.logicOperator
- operator to apply to all filtersIllegalArgumentException
- if specified filters is null or empty
or if one of the filters specified is a ChainedSearchFilter
public ChainedSearchFilter(SearchFilter... filters)
filters
- the filters. Nested ChainedSearchFilter
not supported.public List<SearchFilter> getFilters()
public List<ChainedSearchFilter.Operator> getOperators()
public String getKey()
getKey
in interface SearchFilter
public ChainedSearchFilter merge(ChainedSearchFilter other)
public SearchFilter and(SearchFilter other)
SearchFilter
and
in interface SearchFilter
other
- the other filter.public SearchFilter or(SearchFilter other)
SearchFilter
or
in interface SearchFilter
other
- the other filterpublic SearchFilter expand()
SearchFilter
expand
in interface Expandable<SearchFilter>
expand
in interface SearchFilter
Copyright © 2003–2016 Atlassian. All rights reserved.