de.deepamehta.core.service
Class ResultList<T extends JSONEnabled>
java.lang.Object
de.deepamehta.core.service.ResultList<T>
- All Implemented Interfaces:
- JSONEnabled, Iterable<T>
public class ResultList<T extends JSONEnabled>
- extends Object
- implements Iterable<T>, JSONEnabled
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
totalCount
private int totalCount
items
private List<T extends JSONEnabled> items
ResultList
public ResultList()
ResultList
public ResultList(int totalCount,
List<T> items)
getSize
public int getSize()
getTotalCount
public int getTotalCount()
getItems
public List<T> getItems()
add
public void add(T item)
addAll
public void addAll(ResultList<T> result)
loadChildTopics
public ResultList<T> loadChildTopics()
iterator
public Iterator<T> iterator()
- Specified by:
iterator
in interface Iterable<T extends JSONEnabled>
toJSON
public JSONObject toJSON()
- Specified by:
toJSON
in interface JSONEnabled
Copyright © 2014. All Rights Reserved.