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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
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
-
Constructor Details
-
PageStatisticsRepresentation
public PageStatisticsRepresentation() -
PageStatisticsRepresentation
public PageStatisticsRepresentation(int pageSize)
-
-
Method Details
-
setTotalPages
-
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
-
getTotalElements
-