Package ai.nexconn.chat.model
Class PageResult
-
- All Implemented Interfaces:
public final class PageResult<T extends Object>Pagination result with total count.
Used by pageable queries whose server response includes a total-count field (e.g. group-member search, group-application list).
-
-
Field Summary
Fields Modifier and Type Field Description private final List<T>dataprivate final IntegertotalCount
-
Constructor Summary
Constructors Constructor Description PageResult(List<T> data, Integer totalCount)
-
Method Summary
Modifier and Type Method Description final List<T>getData()Data list for the current page final IntegergetTotalCount()Total number of items matching the query -
-
Constructor Detail
-
PageResult
PageResult(List<T> data, Integer totalCount)
-
-
Method Detail
-
getTotalCount
final Integer getTotalCount()
Total number of items matching the query
-
-
-
-