com.atlassian.jira.jql.context
Class ContextSetUtil

java.lang.Object
  extended by com.atlassian.jira.jql.context.ContextSetUtil

public class ContextSetUtil
extends java.lang.Object

Performs set utilities on ClauseContext's

Since:
v4.0

Constructor Summary
ContextSetUtil()
           
 
Method Summary
static ContextSetUtil getInstance()
           
 ClauseContext intersect(java.util.Set<? extends ClauseContext> childClauseContexts)
          Performs an itersection of the ClauseContext's passed in.
 ClauseContext union(java.util.Set<? extends ClauseContext> childClauseContexts)
          Performs a union of the ClauseContext's passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextSetUtil

public ContextSetUtil()
Method Detail

getInstance

public static ContextSetUtil getInstance()

intersect

public ClauseContext intersect(java.util.Set<? extends ClauseContext> childClauseContexts)
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

public ClauseContext union(java.util.Set<? extends ClauseContext> childClauseContexts)
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.


Copyright © 2002-2010 Atlassian. All Rights Reserved.