Class Pagination
java.lang.Object
api.equinix.javasdk.core.http.response.Pagination
Pagination metadata returned by Equinix API list operations.
Contains offset-based pagination information including the current offset, page size (limit), total result count, and links to previous/next pages. Provides convenience methods for computing page numbers and detecting first/last pages.
- Version:
- $Id: $Id
- Author:
- ianjones
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturnstrueif the current page is the first page of results.Returnstrueif the current page is the last page of results.intReturns the zero-based page number computed from the current offset and limit.intReturns the page size (number of results per page), which equals the limit.
-
Constructor Details
-
Pagination
public Pagination()
-
-
Method Details
-
getPageNumber
public int getPageNumber()Returns the zero-based page number computed from the current offset and limit.- Returns:
- the current page number (0-indexed)
-
getPageSize
public int getPageSize()Returns the page size (number of results per page), which equals the limit.- Returns:
- the number of results per page
-
getIsFirstPage
Returnstrueif the current page is the first page of results.- Returns:
trueif this is page 0
-
getIsLastPage
Returnstrueif the current page is the last page of results.- Returns:
trueif there are no more pages after this one
-