Package com.jummania.model
Class Pagination
java.lang.Object
com.jummania.model.Pagination
A class representing pagination information.
This class holds details about the current page, previous page, next page, and
total pages.
Created by Jummania on 8, May, 2025. Email: sharifuddinjumman@gmail.com Dhaka, Bangladesh.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
int
-
Constructor Summary
ConstructorsConstructorDescriptionPagination
(Integer previousPage, int currentPage, Integer nextPage, int totalPages) Constructs a Pagination object with the specified page information. -
Method Summary
-
Field Details
-
previousPage
-
currentPage
public int currentPage -
nextPage
-
totalPages
public int totalPages
-
-
Constructor Details
-
Pagination
Constructs a Pagination object with the specified page information.- Parameters:
previousPage
- the previous page number, ornull
if there is no previous pagecurrentPage
- the current page numbernextPage
- the next page number, ornull
if there is no next pagetotalPages
- the total number of pages
-
-
Method Details