T
- the type item of the paginated list.public class PageResult<T>
extends java.lang.Object
Constructor and Description |
---|
PageResult(java.util.List<T> content,
long totalElements)
Constructor with the given paginated list and total elements.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
getContent()
Returns the page content as
List . |
long |
getTotalElements()
Returns the total amount of elements.
|
public PageResult(java.util.List<T> content, long totalElements)
content
- totalElements
- public long getTotalElements()
public java.util.List<T> getContent()
List
.