T
- is either SearchQuery
or SearchFilter
@Internal public abstract class BooleanQueryBuilder<T extends Expandable<T>> extends Object
Constructor and Description |
---|
BooleanQueryBuilder() |
Modifier and Type | Method and Description |
---|---|
BooleanQueryBuilder<T> |
addMust(Collection<? extends T> must) |
<U extends T> |
addMust(U... e) |
BooleanQueryBuilder<T> |
addMustNot(Collection<? extends T> mustNot) |
<U extends T> |
addMustNot(U... e) |
BooleanQueryBuilder<T> |
addShould(Collection<? extends T> should) |
<U extends T> |
addShould(U... e) |
T |
build() |
T |
buildExpanded() |
protected abstract T |
combine(Collection<T> must,
Collection<T> should,
Collection<T> mustNot,
boolean expanded) |
public <U extends T> BooleanQueryBuilder<T> addMust(U... e)
public BooleanQueryBuilder<T> addMust(Collection<? extends T> must)
public <U extends T> BooleanQueryBuilder<T> addShould(U... e)
public BooleanQueryBuilder<T> addShould(Collection<? extends T> should)
public <U extends T> BooleanQueryBuilder<T> addMustNot(U... e)
public BooleanQueryBuilder<T> addMustNot(Collection<? extends T> mustNot)
public T build()
public T buildExpanded()
protected abstract T combine(Collection<T> must, Collection<T> should, Collection<T> mustNot, boolean expanded)
Copyright © 2003–2016 Atlassian. All rights reserved.