public class

TabPanelUtil

extends Object
java.lang.Object
   ↳ com.atlassian.jira.plugin.util.TabPanelUtil

Summary

Nested Classes
class TabPanelUtil.PopularIssues Helper class to find all the popular issues for a given project. 
Constants
int MAX_ISSUES_TO_DISPLAY
Fields
public static final PagerFilter PAGER_FILTER
Public Constructors
TabPanelUtil()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int MAX_ISSUES_TO_DISPLAY

Constant Value: 50 (0x00000032)

Fields

public static final PagerFilter PAGER_FILTER

Public Constructors

public TabPanelUtil ()

Public Methods

public static void filterIssuesWithNoVotes (List issues)

Removes the issue with 0 votes from the given list. Note: It also removes it if getVotes() returns null.

Parameters
issues list of Issue objects

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