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 instancecopyDeep()static ProductPagedSearchResponsedeepCopy(ProductPagedSearchResponse template) factory method to create a deep copy of ProductPagedSearchResponse@NotNull @Valid List<ProductSearchFacetResult>Results for facets when requested.@NotNull IntegergetLimit()Number of results requested.@NotNull IntegerNumber of elements skipped.@NotNull @Valid List<ProductSearchResult>Search result containing the Products matching the search query.@NotNull LonggetTotal()Total number of results matching the query.static ProductPagedSearchResponseof()factory methodstatic ProductPagedSearchResponseof(ProductPagedSearchResponse template) factory method to create a shallow copy ProductPagedSearchResponsevoidsetFacets(ProductSearchFacetResult... facets) Results for facets when requested.voidsetFacets(List<ProductSearchFacetResult> facets) Results for facets when requested.voidNumber of results requested.voidNumber of elements skipped.voidsetResults(ProductSearchResult... results) Search result containing the Products matching the search query.voidsetResults(List<ProductSearchResult> results) Search result containing the Products matching the search query.voidTotal number of results matching the query.static com.fasterxml.jackson.core.type.TypeReference<ProductPagedSearchResponse>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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
-
copyDeep
ProductPagedSearchResponse copyDeep() -
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
-