Class RestPage<T>
java.lang.Object
com.atlassian.crowd.plugin.rest.entity.page.RestPage<T>
- All Implemented Interfaces:
Page<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longallResultsToLongMax(int maxResults) Converts max results limit to long value - replaces#ALL_RESULTSwithLong.MAX_VALUE}.booleanstatic <T,A> RestPage<T> fromListPlusOne(List<A> results, com.google.common.base.Function<A, ? extends T> transformer, RestPageRequest pageRequest) static <T> RestPage<T>fromListPlusOne(List<T> results, RestPageRequest pageRequest) intgetLimit()intgetSize()intgetStart()inthashCode()booleanstatic intlimitPlusOne(int limit) toString()
-
Field Details
-
LAST_PAGE_PROPERTY
- See Also:
-
LIMIT_PROPERTY
- See Also:
-
START_PROPERTY
- See Also:
-
SIZE_PROPERTY
- See Also:
-
VALUES_PROPERTY
- See Also:
-
-
Constructor Details
-
RestPage
protected RestPage() -
RestPage
-
RestPage
-
-
Method Details
-
getResults
- Specified by:
getResultsin interfacePage<T>
-
getSize
public int getSize() -
getStart
public int getStart() -
getLimit
public int getLimit() -
isLastPage
public boolean isLastPage()- Specified by:
isLastPagein interfacePage<T>
-
fromListPlusOne
-
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_RESULTSwithLong.MAX_VALUE}. -
equals
-
hashCode
public int hashCode() -
toString
-