Interface ProductProjectionPagedSearchResponse
- All Superinterfaces:
ResourcePagedQueryResponse<ProductProjection>
public interface ProductProjectionPagedSearchResponse
extends ResourcePagedQueryResponse<ProductProjection>
ProductProjectionPagedSearchResponse
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductProjectionPagedSearchResponse productProjectionPagedSearchResponse = ProductProjectionPagedSearchResponse.builder()
.limit(0.3)
.count(0.3)
.offset(0.3)
.plusResults(resultsBuilder -> resultsBuilder)
.facets(facetsBuilder -> facetsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductProjectionPagedSearchResponsebuilder
(ProductProjectionPagedSearchResponse template) create builder for ProductProjectionPagedSearchResponse instancedeepCopy
(ProductProjectionPagedSearchResponse template) factory method to create a deep copy of ProductProjectionPagedSearchResponse@NotNull Long
getCount()
@NotNull @Valid FacetResults
@NotNull Long
getLimit()
Number of results requested.@NotNull Long
Number of elements skipped.@NotNull @Valid List<ProductProjection>
getTotal()
of()
factory methodof
(ProductProjectionPagedSearchResponse template) factory method to create a shallow copy ProductProjectionPagedSearchResponsevoid
set countvoid
setFacets
(FacetResults facets) set facetsvoid
Number of results requested.void
Number of elements skipped.void
setResults
(ProductProjection... results) set resultsvoid
setResults
(List<ProductProjection> results) set resultsvoid
set totalstatic com.fasterxml.jackson.core.type.TypeReference<ProductProjectionPagedSearchResponse>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourcePagedQueryResponse
getPageIndex, getTotalPages, head, isFirst, isLast
-
Method Details
-
getLimit
Number of results requested.
- Specified by:
getLimit
in interfaceResourcePagedQueryResponse<ProductProjection>
- Returns:
- limit
-
getCount
- Specified by:
getCount
in interfaceResourcePagedQueryResponse<ProductProjection>
- Returns:
- count
-
getTotal
Long getTotal()- Specified by:
getTotal
in interfaceResourcePagedQueryResponse<ProductProjection>
- Returns:
- total
-
getOffset
Number of elements skipped.
- Specified by:
getOffset
in interfaceResourcePagedQueryResponse<ProductProjection>
- Returns:
- offset
-
getResults
- Specified by:
getResults
in interfaceResourcePagedQueryResponse<ProductProjection>
- Returns:
- results
-
getFacets
- Returns:
- facets
-
setLimit
Number of results requested.
- Parameters:
limit
- value to be set
-
setCount
set count- Parameters:
count
- value to be set
-
setTotal
set total- Parameters:
total
- value to be set
-
setOffset
Number of elements skipped.
- Parameters:
offset
- value to be set
-
setResults
set results- Parameters:
results
- values to be set
-
setResults
set results- Parameters:
results
- values to be set
-
setFacets
set facets- Parameters:
facets
- value to be set
-
of
factory method- Returns:
- instance of ProductProjectionPagedSearchResponse
-
of
factory method to create a shallow copy ProductProjectionPagedSearchResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductProjectionPagedSearchResponse deepCopy(@Nullable ProductProjectionPagedSearchResponse template) factory method to create a deep copy of ProductProjectionPagedSearchResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductProjectionPagedSearchResponse- Returns:
- builder
-
builder
static ProductProjectionPagedSearchResponseBuilder builder(ProductProjectionPagedSearchResponse template) create builder for ProductProjectionPagedSearchResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductProjectionPagedSearchResponse
default <T> T withProductProjectionPagedSearchResponse(Function<ProductProjectionPagedSearchResponse, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ProductProjectionPagedSearchResponse> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-