Class AbstractRestList<T>

    • 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
    • Constructor Detail

      • AbstractRestList

        public AbstractRestList()
      • AbstractRestList

        public AbstractRestList​(int size,
                                org.apache.commons.lang3.Range<Integer> range,
                                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:
        getCallback in interface com.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)
      • getAllElements

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