Package com.mindee.v2.parsing.search
Class PaginationMetadata
- java.lang.Object
-
- com.mindee.v2.parsing.search.PaginationMetadata
-
public class PaginationMetadata extends Object
PaginationMetadata data associated with model search.
-
-
Constructor Summary
Constructors Constructor Description PaginationMetadata()PaginationMetadata(int perPage, int page, int totalItems, int totalPages)Creates a newPaginationMetadatainstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)intgetPage()1-indexed page number.intgetPerPage()Number of items per page.intgetTotalItems()Total items.intgetTotalPages()Total number of pages.inthashCode()StringtoString()String representation of the pagination metadata.
-
-
-
Constructor Detail
-
PaginationMetadata
public PaginationMetadata(int perPage, int page, int totalItems, int totalPages)Creates a newPaginationMetadatainstance.- Parameters:
perPage- Number of items per page.page- 1-indexed page number.totalItems- Total items.totalPages- Total number of pages.
-
PaginationMetadata
public PaginationMetadata()
-
-
Method Detail
-
toString
public String toString()
String representation of the pagination metadata.
-
getPerPage
public int getPerPage()
Number of items per page.
-
getPage
public int getPage()
1-indexed page number.
-
getTotalItems
public int getTotalItems()
Total items.
-
getTotalPages
public int getTotalPages()
Total number of pages.
-
canEqual
protected boolean canEqual(Object other)
-
-