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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintvoidsetCurrentPage(int currentPage) voidsetPageSize(int pageSize) voidsetTotalElements(Long totalElements) voidsetTotalPages(Integer totalPages) Methods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setPropertyMethods 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
-