Package com.atlassian.bitbucket.util
Class AbstractPagedSummary
java.lang.Object
com.atlassian.bitbucket.util.AbstractSummary
com.atlassian.bitbucket.util.AbstractPagedSummary
- Direct Known Subclasses:
ContentTreeSummary
,FileSummary
Extends
AbstractSummary
and adds additional properties for summarizing a page of output.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AbstractPagedSummary.AbstractPagedBuilder<B extends AbstractPagedSummary.AbstractPagedBuilder<B,
S>, S extends AbstractPagedSummary> Nested classes/interfaces inherited from class com.atlassian.bitbucket.util.AbstractSummary
AbstractSummary.AbstractBuilder<B extends AbstractSummary.AbstractBuilder<B,
S>, S extends AbstractSummary> -
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionIf this is not thelast page
, retrieves thePageRequest
which can be used to request the next page.Retrieves thePageRequest
that was used to retrieve this page of results.int
getSize()
Retrieves the number of results that were retrieved.boolean
Retrieves a flag indicating whether this page is the last page of results.Methods inherited from class com.atlassian.bitbucket.util.AbstractSummary
getResult
-
Constructor Details
-
AbstractPagedSummary
-
-
Method Details
-
getNextPageRequest
If this is not thelast page
, retrieves thePageRequest
which can be used to request the next page. If this is the last page, returnsnull
.- Returns:
- a
PageRequest
to request the next page, ornull
if this is thelast page
-
getPageRequest
Retrieves thePageRequest
that was used to retrieve this page of results.- Returns:
- the
PageRequest
for the current page
-
getSize
public int getSize()Retrieves the number of results that were retrieved. This value will always be less than or equal to thelimit
of thecurrent page request
.- Returns:
- the size of the current page
-
isLastPage
public boolean isLastPage()Retrieves a flag indicating whether this page is the last page of results.- Returns:
true
if this is the final page of results; otherwise,false
if there is anext page
-