Class ProductPagedQueryResponseImpl
- All Implemented Interfaces:
ProductPagedQueryResponse
,ResourcePagedQueryResponse<Product>
,io.vrap.rmf.base.client.ModelBase
PagedQueryResult with results
containing an array of Product.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCount()
Actual number of results returned.getLimit()
Number of results requested.Number of elements skipped.Products 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
(Product... results) Products matching the query.void
setResults
(List<Product> results) Products 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.ProductPagedQueryResponse
withProductPagedQueryResponse
Methods inherited from interface com.commercetools.api.models.ResourcePagedQueryResponse
getPageIndex, getTotalPages, head, isFirst, isLast
-
Constructor Details
-
ProductPagedQueryResponseImpl
public ProductPagedQueryResponseImpl()create empty instance
-
-
Method Details
-
getLimit
Number of results requested.
- Specified by:
getLimit
in interfaceProductPagedQueryResponse
- Specified by:
getLimit
in interfaceResourcePagedQueryResponse<Product>
- Returns:
- limit
-
getOffset
Number of elements skipped.
- Specified by:
getOffset
in interfaceProductPagedQueryResponse
- Specified by:
getOffset
in interfaceResourcePagedQueryResponse<Product>
- Returns:
- offset
-
getCount
Actual number of results returned.
- Specified by:
getCount
in interfaceProductPagedQueryResponse
- Specified by:
getCount
in interfaceResourcePagedQueryResponse<Product>
- 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 interfaceProductPagedQueryResponse
- Specified by:
getTotal
in interfaceResourcePagedQueryResponse<Product>
- Returns:
- total
-
getResults
Products matching the query.
- Specified by:
getResults
in interfaceProductPagedQueryResponse
- Specified by:
getResults
in interfaceResourcePagedQueryResponse<Product>
- Returns:
- results
-
setLimit
Description copied from interface:ProductPagedQueryResponse
Number of results requested.
- Specified by:
setLimit
in interfaceProductPagedQueryResponse
- Parameters:
limit
- value to be set
-
setOffset
Description copied from interface:ProductPagedQueryResponse
Number of elements skipped.
- Specified by:
setOffset
in interfaceProductPagedQueryResponse
- Parameters:
offset
- value to be set
-
setCount
Description copied from interface:ProductPagedQueryResponse
Actual number of results returned.
- Specified by:
setCount
in interfaceProductPagedQueryResponse
- Parameters:
count
- value to be set
-
setTotal
Description copied from interface:ProductPagedQueryResponse
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 interfaceProductPagedQueryResponse
- Parameters:
total
- value to be set
-
setResults
Description copied from interface:ProductPagedQueryResponse
Products matching the query.
- Specified by:
setResults
in interfaceProductPagedQueryResponse
- Parameters:
results
- values to be set
-
setResults
Description copied from interface:ProductPagedQueryResponse
Products matching the query.
- Specified by:
setResults
in interfaceProductPagedQueryResponse
- Parameters:
results
- values to be set
-
equals
-
hashCode
-