Class SimplePagedRequest

java.lang.Object
com.atlassian.servicedesk.api.util.paging.SimplePagedRequest
All Implemented Interfaces:
PagedRequest

@PublicApi public class SimplePagedRequest extends Object implements PagedRequest
A simple immutable implementation of PageRequest
  • Field Details

    • ONE

      public static PagedRequest ONE
      A page request of 1 thing
  • Constructor Details

    • SimplePagedRequest

      public SimplePagedRequest(LimitedPagedRequest request)
    • SimplePagedRequest

      public SimplePagedRequest(int start, int limit)
  • Method Details

    • paged

      public static PagedRequest paged(int start, int limit)
      A page request of the specified start and limit
      Parameters:
      start - the start in play
      limit - the limit in play
      Returns:
      a page request
    • getLimit

      public int getLimit()
      Specified by:
      getLimit in interface PagedRequest
      Returns:
      the number of the results to return in the page
    • getStart

      public int getStart()
      Specified by:
      getStart in interface PagedRequest
      Returns:
      start index for the page of results
    • toString

      public String toString()
      Overrides:
      toString in class Object