Interface ProductSearchMatchingVariants
public interface ProductSearchMatchingVariants
ProductSearchMatchingVariants
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSearchMatchingVariants productSearchMatchingVariants = ProductSearchMatchingVariants.builder()
.allMatched(true)
.plusMatchedVariants(matchedVariantsBuilder -> matchedVariantsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSearchMatchingVariantsbuilder
(ProductSearchMatchingVariants template) create builder for ProductSearchMatchingVariants instancedeepCopy
(ProductSearchMatchingVariants template) factory method to create a deep copy of ProductSearchMatchingVariants@NotNull Boolean
Whether the search criteria definitely matches all Variants of the returned Product, like for Product-level fields.@NotNull @Valid List<ProductSearchMatchingVariantEntry>
The variants matching the search criteria or empty if all matched.of()
factory methodof
(ProductSearchMatchingVariants template) factory method to create a shallow copy ProductSearchMatchingVariantsvoid
setAllMatched
(Boolean allMatched) Whether the search criteria definitely matches all Variants of the returned Product, like for Product-level fields.void
setMatchedVariants
(ProductSearchMatchingVariantEntry... matchedVariants) The variants matching the search criteria or empty if all matched.void
setMatchedVariants
(List<ProductSearchMatchingVariantEntry> matchedVariants) The variants matching the search criteria or empty if all matched.static com.fasterxml.jackson.core.type.TypeReference<ProductSearchMatchingVariants>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getAllMatched
Whether the search criteria definitely matches all Variants of the returned Product, like for Product-level fields. Is always
false
for search expressions on Variant-level fields.- Returns:
- allMatched
-
getMatchedVariants
The variants matching the search criteria or empty if all matched.
- Returns:
- matchedVariants
-
setAllMatched
Whether the search criteria definitely matches all Variants of the returned Product, like for Product-level fields. Is always
false
for search expressions on Variant-level fields.- Parameters:
allMatched
- value to be set
-
setMatchedVariants
The variants matching the search criteria or empty if all matched.
- Parameters:
matchedVariants
- values to be set
-
setMatchedVariants
The variants matching the search criteria or empty if all matched.
- Parameters:
matchedVariants
- values to be set
-
of
factory method- Returns:
- instance of ProductSearchMatchingVariants
-
of
factory method to create a shallow copy ProductSearchMatchingVariants- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSearchMatchingVariants deepCopy(@Nullable ProductSearchMatchingVariants template) factory method to create a deep copy of ProductSearchMatchingVariants- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSearchMatchingVariants- Returns:
- builder
-
builder
create builder for ProductSearchMatchingVariants instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSearchMatchingVariants
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
-