Class TabPanelUtil

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

public class TabPanelUtil extends Object
Since:
v3.10
  • Field Details

    • MAX_ISSUES_TO_DISPLAY

      public static final int MAX_ISSUES_TO_DISPLAY
      See Also:
    • PAGER_FILTER

      public static final PagerFilter PAGER_FILTER
  • Constructor Details

    • TabPanelUtil

      public TabPanelUtil()
  • Method Details

    • 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