public abstract class AbstractPagedSummary extends AbstractSummary
AbstractSummary
and adds additional properties for summarizing a page of output.Modifier and Type | Class and Description |
---|---|
static class |
AbstractPagedSummary.AbstractPagedBuilder<B extends AbstractPagedSummary.AbstractPagedBuilder<B,S>,S extends AbstractPagedSummary> |
AbstractSummary.AbstractBuilder<B extends AbstractSummary.AbstractBuilder<B,S>,S extends AbstractSummary>
Modifier | Constructor and Description |
---|---|
protected |
AbstractPagedSummary(AbstractPagedSummary.AbstractPagedBuilder<?,?> builder) |
Modifier and Type | Method and Description |
---|---|
PageRequest |
getNextPageRequest()
If this is not the
last page , retrieves the PageRequest which can be used to
request the next page. |
PageRequest |
getPageRequest()
Retrieves the
PageRequest that was used to retrieve this page of results. |
int |
getSize()
Retrieves the number of results that were retrieved.
|
boolean |
isLastPage()
Retrieves a flag indicating whether this page is the last page of results.
|
getResult
protected AbstractPagedSummary(@Nonnull AbstractPagedSummary.AbstractPagedBuilder<?,?> builder)
@Nullable public PageRequest getNextPageRequest()
last page
, retrieves the PageRequest
which can be used to
request the next page. If this is the last page, returns null
.PageRequest
to request the next page, or null
if this is the last page
@Nonnull public PageRequest getPageRequest()
PageRequest
that was used to retrieve this page of results.PageRequest
for the current pagepublic int getSize()
limit
of the current page request
.public boolean isLastPage()
true
if this is the final page of results; otherwise, false
if there is a
next page
Copyright © 2019 Atlassian. All rights reserved.