public class ResultList<T extends JSONEnabled> extends Object implements Iterable<T>, JSONEnabled
Modifier and Type | Field and Description |
---|---|
private List<T> |
items |
private int |
totalCount |
Constructor and Description |
---|
ResultList() |
ResultList(int totalCount,
List<T> items) |
Modifier and Type | Method and Description |
---|---|
void |
add(T item) |
void |
addAll(ResultList<T> result) |
T |
get(int index) |
List<T> |
getItems() |
int |
getSize() |
int |
getTotalCount() |
Iterator<T> |
iterator() |
ResultList<T> |
loadChildTopics() |
org.codehaus.jettison.json.JSONObject |
toJSON() |
private int totalCount
private List<T extends JSONEnabled> items
public ResultList()
public ResultList(int totalCount, List<T> items)
public int getSize()
public int getTotalCount()
public void addAll(ResultList<T> result)
public ResultList<T> loadChildTopics()
public Iterator<T> iterator()
iterator
in interface Iterable<T extends JSONEnabled>
public org.codehaus.jettison.json.JSONObject toJSON()
toJSON
in interface JSONEnabled
Copyright © 2015. All Rights Reserved.