Package com.atlassian.jira.plugin.util
Class TabPanelUtil
java.lang.Object
com.atlassian.jira.plugin.util.TabPanelUtil
- Since:
- v3.10
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfilterIssuesWithNoVotes(List issues) Removes the issue with 0 votes from the given list.static CollectionsubSetCollection(Collection collection, int subset) Returns a sub-set of the collection that has up to 'subset' number of entries.
-
Field Details
-
MAX_ISSUES_TO_DISPLAY
public static final int MAX_ISSUES_TO_DISPLAY- See Also:
-
PAGER_FILTER
-
-
Constructor Details
-
TabPanelUtil
public TabPanelUtil()
-
-
Method Details
-
subSetCollection
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 versionssubset- max number of entries in the returning collection- Returns:
- collection of entries, may be empty but never null
-
filterIssuesWithNoVotes
Removes the issue with 0 votes from the given list. Note: It also removes it ifIssue.getVotes()returns null.- Parameters:
issues- list ofIssueobjects
-