public abstract class PaginatedList<X,Z extends AnypointObject> extends Object implements Iterable<X>
| Modifier and Type | Class and Description |
|---|---|
class |
PaginatedList.PaginatingIterator |
| Modifier and Type | Field and Description |
|---|---|
protected int |
limit |
protected List<X> |
list |
protected int |
offset |
protected Z |
parent |
protected int |
total |
| Constructor and Description |
|---|
PaginatedList(Z parent) |
PaginatedList(Z parent,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract @NotNull com.kloudtek.util.URLBuilder |
buildUrl() |
void |
download() |
List<X> |
getAll() |
int |
getTotal() |
@NotNull Iterator<X> |
iterator() |
protected void |
parseJson(String json,
JsonHelper jsonHelper) |
void |
setTotal(int total) |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected Z extends AnypointObject parent
protected int limit
protected int offset
protected int total
public PaginatedList(Z parent)
public PaginatedList(Z parent, int limit)
@NotNull protected abstract @NotNull com.kloudtek.util.URLBuilder buildUrl()
public void download()
throws HttpException
HttpExceptionprotected void parseJson(String json, JsonHelper jsonHelper)
public int getTotal()
public void setTotal(int total)
public int size()
Copyright © 2019 Kloudtek. All rights reserved.