|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.search.v2.searchfilter.ChainedSearchFilter
@Immutable public class ChainedSearchFilter
Allows multiple SearchFilter
s to be chained together, with the option to
specify the logical operator to apply between them.
Nested Class Summary | |
---|---|
static class |
ChainedSearchFilter.Operator
Logic operator to allow clients to specify whether to apply a logical AND or OR between the result of filters |
Constructor Summary | |
---|---|
ChainedSearchFilter(List<? extends SearchFilter> filters,
ChainedSearchFilter.Operator logicOperator)
Constructs a chained search filter. |
|
ChainedSearchFilter(List<? extends SearchFilter> filters,
List<ChainedSearchFilter.Operator> logicOperators)
Constructs a chained search filter. |
|
ChainedSearchFilter(SearchFilter... filters)
Constructs a chained search filter that AND's the list of specified filters. |
Method Summary | |
---|---|
ChainedSearchFilter |
and(SearchFilter other)
Combines this filter with the one specified, returning a new filter. |
boolean |
equals(Object obj)
|
List<SearchFilter> |
getFilters()
|
String |
getKey()
|
List<ChainedSearchFilter.Operator> |
getOperators()
|
int |
hashCode()
|
ChainedSearchFilter |
merge(ChainedSearchFilter other)
|
ChainedSearchFilter |
or(SearchFilter other)
Combines this filter with the one specified, returning a new filter. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 filter
IllegalArgumentException
- 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 filters
IllegalArgumentException
- 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.Method Detail |
---|
public List<SearchFilter> getFilters()
public List<ChainedSearchFilter.Operator> getOperators()
public String getKey()
getKey
in interface SearchFilter
public ChainedSearchFilter merge(ChainedSearchFilter other)
public ChainedSearchFilter and(SearchFilter other)
SearchFilter
and
in interface SearchFilter
other
- the other filter.
public ChainedSearchFilter or(SearchFilter other)
SearchFilter
or
in interface SearchFilter
other
- the other filter
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |