com.atlassian.jira.plugin.util
Class TabPanelUtil

java.lang.Object
  extended by com.atlassian.jira.plugin.util.TabPanelUtil

public class TabPanelUtil
extends Object

Since:
v3.10

Nested Class Summary
static class TabPanelUtil.PopularIssues
          Helper class to find all the popular issues for a given project.
 
Field Summary
static int MAX_ISSUES_TO_DISPLAY
           
static PagerFilter PAGER_FILTER
           
 
Constructor Summary
TabPanelUtil()
           
 
Method Summary
static void filterIssuesWithNoVotes(List issues)
          Removes the issue with 0 votes from the given list.
static Collection subSetCollection(Collection collection, int subset)
          Returns a sub-set of the collection that has up to 'subset' number of entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_ISSUES_TO_DISPLAY

public static final int MAX_ISSUES_TO_DISPLAY
See Also:
Constant Field Values

PAGER_FILTER

public static final PagerFilter PAGER_FILTER
Constructor Detail

TabPanelUtil

public TabPanelUtil()
Method Detail

subSetCollection

public static Collection subSetCollection(Collection collection,
                                          int subset)
Returns a sub-set of the collection that has up to 'subset' number of entries. Returns an empty collection in case of the collection being null or empty.

Parameters:
collection - collection of versions
subset - max number of entries in the returning collection
Returns:
collection of entries, may be empty but never null

filterIssuesWithNoVotes

public static void filterIssuesWithNoVotes(List issues)
Removes the issue with 0 votes from the given list. Note: It also removes it if Issue.getVotes() returns null.

Parameters:
issues - list of Issue objects


Copyright © 2002-2010 Atlassian. All Rights Reserved.