Interface DiscountTypeCombination
public interface DiscountTypeCombination
DiscountTypeCombination
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
DiscountTypeCombination discountTypeCombination = DiscountTypeCombination.bestDealBuilder()
chosenDiscountType("{chosenDiscountType}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic BestDealBuilderbuilder for bestDeal subtypecopyDeep()static DiscountTypeCombinationdeepCopy(DiscountTypeCombination template) factory method to create a deep copy of DiscountTypeCombination@NotNull StringgetType()static StackingBuilderbuilder for stacking subtypestatic com.fasterxml.jackson.core.type.TypeReference<DiscountTypeCombination>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getType
- Returns:
- type
-
copyDeep
DiscountTypeCombination copyDeep() -
deepCopy
factory method to create a deep copy of DiscountTypeCombination- Parameters:
template- instance to be copied- Returns:
- copy instance
-
bestDealBuilder
builder for bestDeal subtype- Returns:
- builder
-
stackingBuilder
builder for stacking subtype- Returns:
- builder
-
withDiscountTypeCombination
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
-