Class NavigablePageResponseImpl<T>
java.lang.Object
com.atlassian.confluence.api.model.pagination.NavigablePageResponseImpl<T>
- All Implemented Interfaces:
NavigablePageResponse<T>,PageResponse<T>,Iterable<T>
A page response that can be navigated.
- Since:
- 9.2.5
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> NavigablePageResponseImpl.Builder<T, ? extends NavigablePageResponseImpl.Builder> from(PageResponse<T> pageResponse) Possible to return total number of resultbooleanhasMore()Indicates whether the source has more results after this page.iterator()intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Method Details
-
getResults
- Specified by:
getResultsin interfacePageResponse<T>- Returns:
- the results
-
size
public int size()- Specified by:
sizein interfacePageResponse<T>- Returns:
- the number of results in this page of results
-
hasMore
public boolean hasMore()Description copied from interface:PageResponseIndicates whether the source has more results after this page.- Specified by:
hasMorein interfacePageResponse<T>- Returns:
- true if there are more results
-
getPageRequest
- Specified by:
getPageRequestin interfacePageResponse<T>- Returns:
- the request used to produce this response
-
getTotalCount
Description copied from interface:PageResponsePossible to return total number of result- Specified by:
getTotalCountin interfacePageResponse<T>- Returns:
-
getNextCursor
- Specified by:
getNextCursorin interfacePageResponse<T>- Returns:
- the identifier which is used to skip results from a previous query when paginating in forward direction.
-
getPrevCursor
- Specified by:
getPrevCursorin interfacePageResponse<T>- Returns:
- the identifier which is used to skip results from a previous query when paginating in backward direction.
-
from
public static <T> NavigablePageResponseImpl.Builder<T,? extends NavigablePageResponseImpl.Builder> from(PageResponse<T> pageResponse) -
iterator
-