Class Paginator


  • public class Paginator
    extends Object
    • Constructor Detail

      • Paginator

        public Paginator()
    • Method Detail

      • getLast

        public static <T> Collection<T> getLast​(Collection<T> input,
                                                javax.ws.rs.core.UriInfo uriInfo)
      • getStartIndex

        public static int getStartIndex​(javax.ws.rs.core.UriInfo uriInfo,
                                        int maxResults)
      • getMaxResults

        public static int getMaxResults​(javax.ws.rs.core.UriInfo uriInfo)
      • getMaxResults

        public static int getMaxResults​(javax.ws.rs.core.UriInfo uriInfo,
                                        int defaultValue)
      • getPaginationRange

        public static org.apache.commons.lang3.Range<Integer> getPaginationRange​(javax.ws.rs.core.UriInfo uriInfo)
      • getPaginationRange

        public static org.apache.commons.lang3.Range<Integer> getPaginationRange​(int resultSize,
                                                                                 javax.ws.rs.core.UriInfo uriInfo)
      • getPaginationRange

        public static <T> org.apache.commons.lang3.Range<Integer> getPaginationRange​(Collection<T> input,
                                                                                     javax.ws.rs.core.UriInfo uriInfo)
      • getPaginationSupport

        public static <T> PagerPaginationSupport getPaginationSupport​(com.atlassian.user.search.page.Pager<T> pager,
                                                                      javax.ws.rs.core.UriInfo uriInfo)
      • paginate

        public static <T> List<T> paginate​(Collection<T> input,
                                           org.apache.commons.lang3.Range<Integer> range)