Class PageStatisticsRepresentation
- java.lang.Object
-
- com.cumulocity.rest.representation.BaseResourceRepresentation
-
- com.cumulocity.rest.representation.AbstractExtensibleRepresentation
-
- com.cumulocity.rest.representation.PageStatisticsRepresentation
-
- All Implemented Interfaces:
ResourceRepresentation
,org.svenson.DynamicProperties
public class PageStatisticsRepresentation extends AbstractExtensibleRepresentation
-
-
Constructor Summary
Constructors Constructor Description PageStatisticsRepresentation()
PageStatisticsRepresentation(int pageSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCurrentPage()
int
getPageSize()
Long
getTotalElements()
Integer
getTotalPages()
void
setCurrentPage(int currentPage)
void
setPageSize(int pageSize)
void
setTotalElements(Long totalElements)
void
setTotalPages(Integer totalPages)
-
Methods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setProperty
-
Methods inherited from class com.cumulocity.rest.representation.BaseResourceRepresentation
getSelf, getSelfDecoded, setSelf, toJSON, toString
-
-
-
-
Method Detail
-
setTotalPages
public void setTotalPages(Integer totalPages)
-
getTotalPages
@JSONProperty(ignoreIfNull=true) public Integer getTotalPages()
-
setPageSize
public void setPageSize(int pageSize)
-
getPageSize
@JSONProperty(ignoreIfNull=true) public int getPageSize()
-
setCurrentPage
public void setCurrentPage(int currentPage)
-
getCurrentPage
@JSONProperty(ignoreIfNull=true) public int getCurrentPage()
-
setTotalElements
public void setTotalElements(Long totalElements)
-
getTotalElements
@JSONProperty(ignoreIfNull=true) public Long getTotalElements()
-
-