Class ProductDiscountPagedQueryResponseImpl
- All Implemented Interfaces:
ProductDiscountPagedQueryResponse
,ResourcePagedQueryResponse<ProductDiscount>
,io.vrap.rmf.base.client.ModelBase
PagedQueryResult with results containing an array of ProductDiscount.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCount()
Actual number of results returned.getLimit()
Number of results requested.Number of elements skipped.ProductDiscounts matching the query.getTotal()
Total number of results matching the query.int
hashCode()
void
Actual number of results returned.void
Number of results requested.void
Number of elements skipped.void
setResults
(ProductDiscount... results) ProductDiscounts matching the query.void
setResults
(List<ProductDiscount> results) ProductDiscounts matching the query.void
Total number of results matching the query.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product_discount.ProductDiscountPagedQueryResponse
withProductDiscountPagedQueryResponse
Methods inherited from interface com.commercetools.api.models.ResourcePagedQueryResponse
getPageIndex, getTotalPages, head, isFirst, isLast
-
Constructor Details
-
ProductDiscountPagedQueryResponseImpl
create empty instance
-
-
Method Details
-
getLimit
Number of results requested.
- Specified by:
getLimit
in interfaceProductDiscountPagedQueryResponse
- Specified by:
getLimit
in interfaceResourcePagedQueryResponse<ProductDiscount>
- Returns:
- limit
-
getOffset
Number of elements skipped.
- Specified by:
getOffset
in interfaceProductDiscountPagedQueryResponse
- Specified by:
getOffset
in interfaceResourcePagedQueryResponse<ProductDiscount>
- Returns:
- offset
-
getCount
Actual number of results returned.
- Specified by:
getCount
in interfaceProductDiscountPagedQueryResponse
- Specified by:
getCount
in interfaceResourcePagedQueryResponse<ProductDiscount>
- Returns:
- count
-
getTotal
Total number of results matching the query. This number is an estimation that is not strongly consistent. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter
withTotal=false
. When the results are filtered with a Query Predicate,total
is subject to a limit.- Specified by:
getTotal
in interfaceProductDiscountPagedQueryResponse
- Specified by:
getTotal
in interfaceResourcePagedQueryResponse<ProductDiscount>
- Returns:
- total
-
getResults
ProductDiscounts matching the query.
- Specified by:
getResults
in interfaceProductDiscountPagedQueryResponse
- Specified by:
getResults
in interfaceResourcePagedQueryResponse<ProductDiscount>
- Returns:
- results
-
setLimit
Description copied from interface:ProductDiscountPagedQueryResponse
Number of results requested.
- Specified by:
setLimit
in interfaceProductDiscountPagedQueryResponse
- Parameters:
limit
- value to be set
-
setOffset
Description copied from interface:ProductDiscountPagedQueryResponse
Number of elements skipped.
- Specified by:
setOffset
in interfaceProductDiscountPagedQueryResponse
- Parameters:
offset
- value to be set
-
setCount
Description copied from interface:ProductDiscountPagedQueryResponse
Actual number of results returned.
- Specified by:
setCount
in interfaceProductDiscountPagedQueryResponse
- Parameters:
count
- value to be set
-
setTotal
Description copied from interface:ProductDiscountPagedQueryResponse
Total number of results matching the query. This number is an estimation that is not strongly consistent. This field is returned by default. For improved performance, calculating this field can be deactivated by using the query parameter
withTotal=false
. When the results are filtered with a Query Predicate,total
is subject to a limit.- Specified by:
setTotal
in interfaceProductDiscountPagedQueryResponse
- Parameters:
total
- value to be set
-
setResults
Description copied from interface:ProductDiscountPagedQueryResponse
ProductDiscounts matching the query.
- Specified by:
setResults
in interfaceProductDiscountPagedQueryResponse
- Parameters:
results
- values to be set
-
setResults
Description copied from interface:ProductDiscountPagedQueryResponse
ProductDiscounts matching the query.
- Specified by:
setResults
in interfaceProductDiscountPagedQueryResponse
- Parameters:
results
- values to be set
-
equals
-
hashCode
-