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
Nested ClassesModifier and TypeClassDescriptionstatic classAbstractPagedSummary.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
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionIf this is not thelast page, retrieves thePageRequestwhich can be used to request the next page.Retrieves thePageRequestthat was used to retrieve this page of results.intgetSize()Retrieves the number of results that were retrieved.booleanRetrieves 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 thePageRequestwhich can be used to request the next page. If this is the last page, returnsnull.- Returns:
- a
PageRequestto request the next page, ornullif this is thelast page
-
getPageRequest
Retrieves thePageRequestthat was used to retrieve this page of results.- Returns:
- the
PageRequestfor 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 thelimitof 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:
trueif this is the final page of results; otherwise,falseif there is anext page
-