public abstract class

AbstractPagedListWrapper

extends Object
implements ListWrapper<T>
java.lang.Object
   ↳ com.atlassian.plugins.rest.common.expand.entity.AbstractPagedListWrapper<T>
Known Direct Subclasses

Class Overview

An abstract list wrapper that provides support for paging information:

  • size
  • max-results
  • start-index

Summary

Protected Constructors
AbstractPagedListWrapper(int size, int maxResults)
Public Methods
final ListWrapperCallback<T> getCallback()
int getMaxResults()
abstract ListWrapperCallback<T> getPagingCallback()
Gets the call back that will actually "retrieve" the necessary element to populate the List.
int getSize()
Integer getStartIndex()
void setStartIndex(int startIndex)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugins.rest.common.expand.entity.ListWrapper

Protected Constructors

protected AbstractPagedListWrapper (int size, int maxResults)

Public Methods

public final ListWrapperCallback<T> getCallback ()

public int getMaxResults ()

public abstract ListWrapperCallback<T> getPagingCallback ()

Gets the call back that will actually "retrieve" the necessary element to populate the List. Size, index and max result attributes are already set by this abstract class, no need to worry about them.

Returns
  • the call back that does all the work.

public int getSize ()

public Integer getStartIndex ()

public void setStartIndex (int startIndex)