Package com.atlassian.jira.jql.context
Class ContextSetUtil
java.lang.Object
com.atlassian.jira.jql.context.ContextSetUtil
Performs set utilities on
ClauseContext
's- Since:
- v4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContextSetUtil
intersect
(Set<? extends ClauseContext> childClauseContexts) Performs an itersection of the ClauseContext's passed in.union
(Set<? extends ClauseContext> childClauseContexts) Performs a union of the ClauseContext's passed in.
-
Constructor Details
-
ContextSetUtil
public ContextSetUtil()
-
-
Method Details
-
getInstance
-
intersect
Performs an itersection of the ClauseContext's passed in.NOTE: When
ProjectIssueTypeContext
's are compared they are considered equivilent if the id values are the same, we do not compare if they are Explicit or Implicit. When combined an Explicit flag will always replace an Implicit flag.- Parameters:
childClauseContexts
- the child clause contexts to intersect, must never be null or contain null elements- Returns:
- the intersection of ClauseContext's that were passed in.
-
union
Performs a union of the ClauseContext's passed in.NOTE: When
ProjectIssueTypeContext
's are compared they are considered equivilent if the id values are the same, we do not compare if they are Explicit or Implicit. When combined an Explicit flag will always replace an Implicit flag.- Parameters:
childClauseContexts
- the child clause contexts to union, must never be null or contain null elements- Returns:
- the union of the ClauseContext's that were passed in.
-