public abstract class

PagedListWrapper

extends Object
implements ListWrapper<T>
java.lang.Object
   ↳ com.atlassian.jira.rest.api.expand.PagedListWrapper<T, Z>
Known Direct Subclasses

Class Overview

This ListWrapper will use any expansion varibales to restrict the size of the list. You pass expansion variables like ?expand=sharedUsers[10:40] This returns a ListWrapper with an offset of 10 and an end index of 40. The indexes are bound within the range of size

Summary

Nested Classes
class PagedListWrapper.PagedListWrapperDocExample<T, Z> This class is for documentation purpose only, do not use it. 
Fields
protected int endIndex
protected int size
protected int startIndex
Public Constructors
PagedListWrapper(int size, int maxResults)
Public Methods
abstract T fromBackedObject(Z backedObject)
abstract int getBackingListSize()
final ListWrapperCallback<T> getCallback()
int getMaxResults()
abstract List<Z> getOrderedList(int startIndex, int endIndex)
ListWrapperCallback<T> getPagingCallback()
int getSize()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugins.rest.common.expand.entity.ListWrapper

Fields

protected int endIndex

protected int size

protected int startIndex

Public Constructors

public PagedListWrapper (int size, int maxResults)

Public Methods

public abstract T fromBackedObject (Z backedObject)

public abstract int getBackingListSize ()

public final ListWrapperCallback<T> getCallback ()

public int getMaxResults ()

public abstract List<Z> getOrderedList (int startIndex, int endIndex)

public ListWrapperCallback<T> getPagingCallback ()

public int getSize ()