public abstract class AbstractRestList<T> extends Object implements com.atlassian.plugins.rest.common.expand.entity.ListWrapper<T>
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T> |
callback |
protected int |
maxResult |
protected int |
size |
protected int |
startIndex |
Constructor and Description |
---|
AbstractRestList() |
AbstractRestList(int size,
org.apache.commons.lang3.Range<Integer> range,
com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T> callback) |
Modifier and Type | Method and Description |
---|---|
List<T> |
getAllElements()
Obtain all elements from the underlying list.
|
com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T> |
getCallback() |
int |
getSize() |
void |
setMaxResult(int maxResult) |
void |
setStartIndex(int startIndex) |
protected int startIndex
protected int maxResult
protected int size
protected com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T> callback
public int getSize()
public com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T> getCallback()
getCallback
in interface com.atlassian.plugins.rest.common.expand.entity.ListWrapper<T>
public void setStartIndex(int startIndex)
public void setMaxResult(int maxResult)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.