Class RestPage<T>
java.lang.Object
com.atlassian.crowd.plugin.rest.entity.page.RestPage<T>
- All Implemented Interfaces:
Page<T>
- Direct Known Subclasses:
VersionedRestPage
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
allResultsToLongMax
(int maxResults) Converts max results limit to long value - replaces#ALL_RESULTS
withLong.MAX_VALUE
}.boolean
static <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) int
getLimit()
int
getSize()
int
getStart()
int
hashCode()
boolean
static int
limitPlusOne
(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:
getResults
in interfacePage<T>
-
getSize
public int getSize() -
getStart
public int getStart() -
getLimit
public int getLimit() -
isLastPage
public boolean isLastPage()- Specified by:
isLastPage
in 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_RESULTS
withLong.MAX_VALUE
}. -
equals
-
hashCode
public int hashCode() -
toString
-