Package tech.ailef.dbadmin.external.dto
Class PaginatedResult<T>
java.lang.Object
tech.ailef.dbadmin.external.dto.PaginatedResult<T>
A wrapper class that holds info about the current pagination and one page
of returned result.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of results for the current pageReturns the pagination settings used to produce this outputReturns the list of results in the current pageboolean
isEmpty()
Returns whether the results are empty
-
Constructor Details
-
PaginatedResult
-
-
Method Details
-
getPagination
Returns the pagination settings used to produce this output- Returns:
-
getResults
Returns the list of results in the current page- Returns:
-
isEmpty
public boolean isEmpty()Returns whether the results are empty- Returns:
-
getNumberOfResults
public int getNumberOfResults()Returns the number of results for the current page- Returns:
-