|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.api.core.Res
ccc.api.core.PagedCollection<T>
T
- The type of the elements.public class PagedCollection<T>
Wrapper class for a collection of DTOs.
Constructor Summary | |
---|---|
PagedCollection(java.lang.Class<T> elementClass)
Constructor. |
|
PagedCollection(long totalCount,
java.lang.Class<T> elementClass,
java.util.List<T> elements)
Constructor. |
Method Summary | |
---|---|
java.lang.Class<T> |
getElementClass()
Accessor. |
java.util.List<T> |
getElements()
Accessor. |
long |
getTotalCount()
Accessor. |
Methods inherited from class ccc.api.core.Res |
---|
addLink, addLinks, getLink, getLinks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PagedCollection(long totalCount, java.lang.Class<T> elementClass, java.util.List<T> elements)
totalCount
- The total number of elements in the collection.elementClass
- The type of collection to create.elements
- The elements on the current page.public PagedCollection(java.lang.Class<T> elementClass)
elementClass
- The type of collection to create.Method Detail |
---|
public final long getTotalCount()
public final java.util.List<T> getElements()
public java.lang.Class<T> getElementClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |