com.atlassian.jira.rest.api.expand
Class PagedListWrapper<T,Z>
java.lang.Object
com.atlassian.jira.rest.api.expand.PagedListWrapper<T,Z>
- All Implemented Interfaces:
- com.atlassian.plugins.rest.common.expand.entity.ListWrapper<T>
- Direct Known Subclasses:
- FilterSubscriptionBeanListWrapper, PagedListWrapper.PagedListWrapperDocExample, UserBeanListWrapper, UserJsonBeanListWrapper
public abstract class PagedListWrapper<T,Z>
- extends Object
- implements com.atlassian.plugins.rest.common.expand.entity.ListWrapper<T>
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
- Since:
- v6.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
size
protected int size
startIndex
protected int startIndex
endIndex
protected int endIndex
PagedListWrapper
public PagedListWrapper(int size,
int maxResults)
getSize
public int getSize()
getMaxResults
public int getMaxResults()
getCallback
public final com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T> getCallback()
- Specified by:
getCallback
in interface com.atlassian.plugins.rest.common.expand.entity.ListWrapper<T>
getPagingCallback
public com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T> getPagingCallback()
fromBackedObject
public abstract T fromBackedObject(Z backedObject)
getBackingListSize
public abstract int getBackingListSize()
getOrderedList
public abstract List<Z> getOrderedList(int startIndex,
int endIndex)
Copyright © 2002-2014 Atlassian. All Rights Reserved.