Class DefaultPage<T>

java.lang.Object
com.atlassian.jira.plugin.issuetabpanel.DefaultPage<T>
All Implemented Interfaces:
Page<T>

public class DefaultPage<T> extends Object implements Page<T>
  • Method Details

    • first

      public static <T> DefaultPage<T> first(Collection<T> coll)
    • last

      public static <T> DefaultPage<T> last(Collection<T> coll)
    • only

      public static <T> DefaultPage<T> only(Collection<T> coll)
    • nth

      public static <T> DefaultPage<T> nth(Collection<T> coll)
    • empty

      public static Page<IssueAction> empty()
    • getPageContents

      public List<T> getPageContents()
      Specified by:
      getPageContents in interface Page<T>
      Returns:
      An immutable list of elements contained in the Page
    • isFirstPage

      public boolean isFirstPage()
      Description copied from interface: Page
      Indicates whether the Page is the first one.
      Specified by:
      isFirstPage in interface Page<T>
      Returns:
      true if the Page contains first elements of the list, false otherwise
    • isLastPage

      public boolean isLastPage()
      Description copied from interface: Page
      Indicates whether the Page is the last one.
      Specified by:
      isLastPage in interface Page<T>
      Returns:
      true if the Page contains last elements of the list, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object