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 resultboolean
hasMore()
Indicates whether the source has more results after this page.iterator()
int
size()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Method Details
-
getResults
- Specified by:
getResults
in interfacePageResponse<T>
- Returns:
- the results
-
size
public int size()- Specified by:
size
in interfacePageResponse<T>
- Returns:
- the number of results in this page of results
-
hasMore
public boolean hasMore()Description copied from interface:PageResponse
Indicates whether the source has more results after this page.- Specified by:
hasMore
in interfacePageResponse<T>
- Returns:
- true if there are more results
-
getPageRequest
- Specified by:
getPageRequest
in interfacePageResponse<T>
- Returns:
- the request used to produce this response
-
getTotalCount
Description copied from interface:PageResponse
Possible to return total number of result- Specified by:
getTotalCount
in interfacePageResponse<T>
- Returns:
-
getNextCursor
- Specified by:
getNextCursor
in interfacePageResponse<T>
- Returns:
- the identifier which is used to skip results from a previous query when paginating in forward direction.
-
getPrevCursor
- Specified by:
getPrevCursor
in 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
-