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 Details

    • startIndex

      protected int startIndex
    • maxResult

      protected int maxResult
    • size

      protected int size
    • callback

      protected com.atlassian.plugins.rest.api.expand.listwrapper.ListWrapperCallback<T> callback
  • Constructor Details

    • AbstractRestList

      public AbstractRestList()
    • AbstractRestList

      public AbstractRestList(int size, org.apache.commons.lang3.Range<Integer> range, com.atlassian.plugins.rest.api.expand.listwrapper.ListWrapperCallback<T> callback)
  • Method Details

    • getSize

      public int getSize()
    • getCallback

      public com.atlassian.plugins.rest.api.expand.listwrapper.ListWrapperCallback<T> getCallback()
      Specified by:
      getCallback in interface com.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

      @NotNull public @NotNull List<T> getAllElements()
      Obtain all elements from the underlying list.