Package com.xero.models.bankfeeds
Class Pagination
- java.lang.Object
-
- com.xero.models.bankfeeds.Pagination
-
public class Pagination extends Object
Pagination
-
-
Constructor Summary
Constructors Constructor Description Pagination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)IntegergetItemCount()Number of items returnedIntegergetPage()Page number which specifies the set of records to retrieve.IntegergetPageCount()Number of pages availableIntegergetPageSize()Page size which specifies how many records per page will be returned (default 50).inthashCode()PaginationitemCount(Integer itemCount)Number of items returnedPaginationpage(Integer page)Page number which specifies the set of records to retrieve.PaginationpageCount(Integer pageCount)Number of pages availablePaginationpageSize(Integer pageSize)Page size which specifies how many records per page will be returned (default 50).voidsetItemCount(Integer itemCount)Number of items returnedvoidsetPage(Integer page)Page number which specifies the set of records to retrieve.voidsetPageCount(Integer pageCount)Number of pages availablevoidsetPageSize(Integer pageSize)Page size which specifies how many records per page will be returned (default 50).StringtoString()
-
-
-
Method Detail
-
page
public Pagination page(Integer page)
Page number which specifies the set of records to retrieve. Example - https://api.xero.com/bankfeeds.xro/1.0/Statements?page=2 to get the second set of the records. When page value is not a number or a negative number, by default, the first set of records is returned.- Parameters:
page- Integer- Returns:
- Pagination
-
getPage
public Integer getPage()
Page number which specifies the set of records to retrieve. Example - https://api.xero.com/bankfeeds.xro/1.0/Statements?page=2 to get the second set of the records. When page value is not a number or a negative number, by default, the first set of records is returned.- Returns:
- page
-
setPage
public void setPage(Integer page)
Page number which specifies the set of records to retrieve. Example - https://api.xero.com/bankfeeds.xro/1.0/Statements?page=2 to get the second set of the records. When page value is not a number or a negative number, by default, the first set of records is returned.- Parameters:
page- Integer
-
pageSize
public Pagination pageSize(Integer pageSize)
Page size which specifies how many records per page will be returned (default 50). Example - https://api.xero.com/bankfeeds.xro/1.0/Statements?pageSize=100 to specify page size of 100.- Parameters:
pageSize- Integer- Returns:
- Pagination
-
getPageSize
public Integer getPageSize()
Page size which specifies how many records per page will be returned (default 50). Example - https://api.xero.com/bankfeeds.xro/1.0/Statements?pageSize=100 to specify page size of 100.- Returns:
- pageSize
-
setPageSize
public void setPageSize(Integer pageSize)
Page size which specifies how many records per page will be returned (default 50). Example - https://api.xero.com/bankfeeds.xro/1.0/Statements?pageSize=100 to specify page size of 100.- Parameters:
pageSize- Integer
-
pageCount
public Pagination pageCount(Integer pageCount)
Number of pages available- Parameters:
pageCount- Integer- Returns:
- Pagination
-
getPageCount
public Integer getPageCount()
Number of pages available- Returns:
- pageCount
-
setPageCount
public void setPageCount(Integer pageCount)
Number of pages available- Parameters:
pageCount- Integer
-
itemCount
public Pagination itemCount(Integer itemCount)
Number of items returned- Parameters:
itemCount- Integer- Returns:
- Pagination
-
getItemCount
public Integer getItemCount()
Number of items returned- Returns:
- itemCount
-
setItemCount
public void setItemCount(Integer itemCount)
Number of items returned- Parameters:
itemCount- Integer
-
-