Package com.atlassian.bamboo.rest.model
Class AbstractRestList<T>
- java.lang.Object
-
- com.atlassian.bamboo.rest.model.AbstractRestList<T>
-
- All Implemented Interfaces:
com.atlassian.plugins.rest.common.expand.entity.ListWrapper<T>
- Direct Known Subclasses:
RestAgentCapabilities,RestArtifactDefinitionList,RestBranchList,RestBuildArtifactList,RestBuildLabelList,RestBuildLogEntryList,RestBuildMetadataList,RestChangeFileList,RestChangeList,RestCommentList,RestExecutableEnvironmentList,RestExecutableJobList,RestGlobalVariableList,RestJiraIssueList,RestJobResultStatusList,RestPlanActionList,RestPlanBranchList,RestPlanLabelList,RestPlanList,RestPreferenceList,RestProjectList,RestQueuedBuildList,RestQueuedDeploymentList,RestReportList,RestRepositoryList,RestResourceList,RestResultList,RestStageList,RestStageResultList,RestStageResultStatusList,RestTestErrorList,RestTestResultList,RestVariableList,RestVcsBranchList,VcsRevisionList
public abstract class AbstractRestList<T> extends Object implements com.atlassian.plugins.rest.common.expand.entity.ListWrapper<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T>callbackprotected intmaxResultprotected intsizeprotected intstartIndex
-
Constructor Summary
Constructors Constructor Description AbstractRestList()AbstractRestList(int size, org.apache.commons.lang3.Range<Integer> range, com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T> callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull List<T>getAllElements()Obtain all elements from the underlying list.com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T>getCallback()intgetMaxResult()intgetSize()intgetStartIndex()voidsetMaxResult(int maxResult)voidsetStartIndex(int startIndex)
-
-
-
Field Detail
-
startIndex
protected int startIndex
-
maxResult
protected int maxResult
-
size
protected int size
-
callback
protected com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T> callback
-
-
Method Detail
-
getSize
public int getSize()
-
getCallback
public com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T> getCallback()
- Specified by:
getCallbackin interfacecom.atlassian.plugins.rest.common.expand.entity.ListWrapper<T>
-
getStartIndex
public int getStartIndex()
-
setStartIndex
public void setStartIndex(int startIndex)
-
getMaxResult
public int getMaxResult()
-
setMaxResult
public void setMaxResult(int maxResult)
-
-