Interface ProductPagedSearchResponse
public interface ProductPagedSearchResponse
ProductPagedSearchResponse
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductPagedSearchResponse productPagedSearchResponse = ProductPagedSearchResponse.builder()
.total(0.3)
.offset(0.3)
.limit(0.3)
.plusFacets(facetsBuilder -> facetsBuilder)
.plusResults(resultsBuilder -> resultsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductPagedSearchResponsebuilder
(ProductPagedSearchResponse template) create builder for ProductPagedSearchResponse instancestatic ProductPagedSearchResponse
deepCopy
(ProductPagedSearchResponse template) factory method to create a deep copy of ProductPagedSearchResponse@NotNull @Valid List<ProductSearchFacetResult>
Results for facets when requested.@NotNull Integer
getLimit()
Number of results requested.@NotNull Integer
Number of elements skipped.@NotNull @Valid List<ProductSearchResult>
Search result containing the Products matching the search query.@NotNull Long
getTotal()
Total number of results matching the query.static ProductPagedSearchResponse
of()
factory methodstatic ProductPagedSearchResponse
of
(ProductPagedSearchResponse template) factory method to create a shallow copy ProductPagedSearchResponsevoid
setFacets
(ProductSearchFacetResult... facets) Results for facets when requested.void
setFacets
(List<ProductSearchFacetResult> facets) Results for facets when requested.void
Number of results requested.void
Number of elements skipped.void
setResults
(ProductSearchResult... results) Search result containing the Products matching the search query.void
setResults
(List<ProductSearchResult> results) Search result containing the Products matching the search query.void
Total number of results matching the query.static com.fasterxml.jackson.core.type.TypeReference<ProductPagedSearchResponse>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getTotal
Total number of results matching the query.
- Returns:
- total
-
getOffset
Number of elements skipped.
- Returns:
- offset
-
getLimit
Number of results requested.
- Returns:
- limit
-
getFacets
Results for facets when requested.
- Returns:
- facets
-
getResults
Search result containing the Products matching the search query.
- Returns:
- results
-
setTotal
Total number of results matching the query.
- Parameters:
total
- value to be set
-
setOffset
Number of elements skipped.
- Parameters:
offset
- value to be set
-
setLimit
Number of results requested.
- Parameters:
limit
- value to be set
-
setFacets
Results for facets when requested.
- Parameters:
facets
- values to be set
-
setFacets
Results for facets when requested.
- Parameters:
facets
- values to be set
-
setResults
Search result containing the Products matching the search query.
- Parameters:
results
- values to be set
-
setResults
Search result containing the Products matching the search query.
- Parameters:
results
- values to be set
-
of
factory method- Returns:
- instance of ProductPagedSearchResponse
-
of
factory method to create a shallow copy ProductPagedSearchResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ProductPagedSearchResponse- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductPagedSearchResponse- Returns:
- builder
-
builder
create builder for ProductPagedSearchResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductPagedSearchResponse
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-