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.api.expand.listwrapper.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.api.expand.listwrapper.ListWrapper<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.atlassian.plugins.rest.api.expand.listwrapper.ListWrapperCallback<T>
protected int
protected int
protected int
-
Constructor Summary
ConstructorDescriptionAbstractRestList
(int size, org.apache.commons.lang3.Range<Integer> range, com.atlassian.plugins.rest.api.expand.listwrapper.ListWrapperCallback<T> callback) -
Method Summary
Modifier and TypeMethodDescriptionObtain all elements from the underlying list.com.atlassian.plugins.rest.api.expand.listwrapper.ListWrapperCallback<T>
int
int
getSize()
int
void
setMaxResult
(int maxResult) void
setStartIndex
(int startIndex)
-
Field Details
-
startIndex
protected int startIndex -
maxResult
protected int maxResult -
size
protected int size -
callback
-
-
Constructor Details
-
AbstractRestList
public AbstractRestList() -
AbstractRestList
-
-
Method Details
-
getSize
public int getSize() -
getCallback
- Specified by:
getCallback
in interfacecom.atlassian.plugins.rest.api.expand.listwrapper.ListWrapper<T>
-
getStartIndex
public int getStartIndex() -
setStartIndex
public void setStartIndex(int startIndex) -
getMaxResult
public int getMaxResult() -
setMaxResult
public void setMaxResult(int maxResult) -
getAllElements
Obtain all elements from the underlying list.
-