Class PageResult<T>
java.lang.Object
org.eclipse.nebula.widgets.pagination.collections.PageResult<T>
- Type Parameters:
T
- the type item of the paginated list.
public class PageResult<T>
extends java.lang.Object
Page result used to store pagination result information :
- the total elements
- the paginated list
-
Constructor Summary
Constructors Constructor Description PageResult(java.util.List<T> content, long totalElements)
Constructor with the given paginated list and total elements. -
Method Summary
Modifier and Type Method Description java.util.List<T>
getContent()
Returns the page content asList
.long
getTotalElements()
Returns the total amount of elements.
-
Constructor Details
-
PageResult
Constructor with the given paginated list and total elements.- Parameters:
content
-totalElements
-
-
-
Method Details
-
getTotalElements
public long getTotalElements()Returns the total amount of elements.- Returns:
- the total amount of elements
-
getContent
Returns the page content asList
.- Returns:
-