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 |
---|---|
@NotNull List<T> |
getAllElements()
Obtain all elements from the underlying list.
|
com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<T> |
getCallback() |
int |
getMaxResult() |
int |
getSize() |
int |
getStartIndex() |
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 int getStartIndex()
public void setStartIndex(int startIndex)
public int getMaxResult()
public void setMaxResult(int maxResult)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.