PageData

public final class PageData<T extends Object>

Pagination data wrapper for pageable queries.

Used by pageable queries whose server response does not include a total-count field (e.g. message history, channel list).

Parameters

T

Element type of the result list

Constructors

Link copied to clipboard
public PageData<T> PageData<T extends Any>(List<T> data)

Properties

Link copied to clipboard
private final List<T> data

Data list for the current page

Functions

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

Data list for the current page