public class Combine extends Object
QueryBuilder
.Constructor and Description |
---|
Combine() |
Modifier and Type | Method and Description |
---|---|
static BooleanRestriction |
allOf(Collection<? extends SearchRestriction> restrictions)
Returns an AND boolean search restriction where all of the search restrictions have to be satisfied.
|
static BooleanRestriction |
allOf(SearchRestriction... restrictions)
Returns an AND boolean search restriction where all of the search restrictions have to be satisfied.
|
static SearchRestriction |
allOfIfNeeded(Collection<? extends SearchRestriction> restrictions) |
static BooleanRestriction |
anyOf(Collection<? extends SearchRestriction> restrictions)
Returns an OR boolean search restriction where only one or more of the search restrictions have to be
satisfied.
|
static BooleanRestriction |
anyOf(SearchRestriction... restrictions)
Returns an OR boolean search restriction where only one or more of the search restrictions have to be
satisfied.
|
static SearchRestriction |
anyOfIfNeeded(Collection<? extends SearchRestriction> restrictions) |
static SearchRestriction |
optionalAllOf(SearchRestriction... optionalRestrictions)
Returns a combined restriction where all of the non-empty search restrictions have to be satisfied.
|
public static BooleanRestriction anyOf(SearchRestriction... restrictions)
restrictions
- search restrictionspublic static BooleanRestriction allOf(SearchRestriction... restrictions)
restrictions
- search restrictionspublic static BooleanRestriction anyOf(Collection<? extends SearchRestriction> restrictions)
restrictions
- search restrictionspublic static BooleanRestriction allOf(Collection<? extends SearchRestriction> restrictions)
restrictions
- search restrictionspublic static SearchRestriction optionalAllOf(SearchRestriction... optionalRestrictions)
optionalRestrictions
- restrictions, NullRestriction.INSTANCE
are considered empty and skippedpublic static SearchRestriction allOfIfNeeded(Collection<? extends SearchRestriction> restrictions)
public static SearchRestriction anyOfIfNeeded(Collection<? extends SearchRestriction> restrictions)
Copyright © 2021 Atlassian. All rights reserved.