com.cumulocity.model.pagination
Class PageRequest
java.lang.Object
com.cumulocity.model.pagination.PageRequest
public class PageRequest
- extends Object
This class encapsulates pagination information from the client.
Page numbering starts from 1.
DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZE
- Default value for page size.
- See Also:
- Constant Field Values
DEFAULT_CURR_PAGE
public static final int DEFAULT_CURR_PAGE
- Default value for current page.
- See Also:
- Constant Field Values
PageRequest
public PageRequest()
PageRequest
public PageRequest(int pageSize,
int currentPage)
defaultPageRequest
public static PageRequest defaultPageRequest()
setPageSize
public void setPageSize(int pageSize)
getPageSize
public int getPageSize()
setCurrentPage
public void setCurrentPage(int currentPage)
getCurrentPage
public int getCurrentPage()
getOffset
public int getOffset()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.