PageResult

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).

Parameters

T

Element type of the result list

Constructors

Link copied to clipboard
public PageResult<T> PageResult<T extends Any>(List<T> data, Integer totalCount)

Properties

Link copied to clipboard
private final List<T> data

Data list for the current page

Link copied to clipboard
private final Integer totalCount

Total number of items matching the query

Functions

Link copied to clipboard
public final List<T> getData()

Data list for the current page

Link copied to clipboard
public final Integer getTotalCount()

Total number of items matching the query