Class RestPage<T>

java.lang.Object
com.atlassian.crowd.plugin.rest.entity.page.RestPage<T>
All Implemented Interfaces:
Page<T>
Direct Known Subclasses:
VersionedRestPage

public class RestPage<T> extends Object implements Page<T>
  • Field Details

  • Constructor Details

    • RestPage

      protected RestPage()
    • RestPage

      public RestPage(Page<? extends E> page, com.google.common.base.Function<E,? extends T> restTransform)
    • RestPage

      public RestPage(List<T> results, int size, int start, int limit, boolean isLastPage)
  • Method Details

    • getResults

      public List<T> getResults()
      Specified by:
      getResults in interface Page<T>
    • getSize

      public int getSize()
      Specified by:
      getSize in interface Page<T>
    • getStart

      public int getStart()
      Specified by:
      getStart in interface Page<T>
    • getLimit

      public int getLimit()
      Specified by:
      getLimit in interface Page<T>
    • isLastPage

      public boolean isLastPage()
      Specified by:
      isLastPage in interface Page<T>
    • fromListPlusOne

      public static <T> RestPage<T> fromListPlusOne(List<T> results, RestPageRequest pageRequest)
    • fromListPlusOne

      public static <T, A> RestPage<T> fromListPlusOne(List<A> results, com.google.common.base.Function<A,? extends T> transformer, RestPageRequest pageRequest)
    • limitPlusOne

      public static int limitPlusOne(int limit)
    • allResultsToLongMax

      public static long allResultsToLongMax(int maxResults)
      Converts max results limit to long value - replaces #ALL_RESULTS with Long.MAX_VALUE}.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object