de.deepamehta.core.service
Class ResultList<T extends JSONEnabled>

Show UML class diagram
java.lang.Object
  extended by de.deepamehta.core.service.ResultList<T>
All Implemented Interfaces:
JSONEnabled, Iterable<T>

public class ResultList<T extends JSONEnabled>
extends Object
implements Iterable<T>, JSONEnabled


Field Summary
private  List<T> items
           
private  int totalCount
           
 
Constructor Summary
ResultList()
           
ResultList(int totalCount, List<T> items)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

totalCount

private int totalCount

items

private List<T extends JSONEnabled> items
Constructor Detail

ResultList

public ResultList()

ResultList

public ResultList(int totalCount,
                  List<T> items)
Method Detail

get

public T get(int index)

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 org.codehaus.jettison.json.JSONObject toJSON()
Specified by:
toJSON in interface JSONEnabled


Copyright © 2015. All Rights Reserved.