Interface DiscountedLineItemPriceForQuantity
public interface DiscountedLineItemPriceForQuantity
DiscountedLineItemPriceForQuantity
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountedLineItemPriceForQuantity discountedLineItemPriceForQuantity = DiscountedLineItemPriceForQuantity.builder()
.quantity(1)
.discountedPrice(discountedPriceBuilder -> discountedPriceBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for DiscountedLineItemPriceForQuantitybuilder(DiscountedLineItemPriceForQuantity template) create builder for DiscountedLineItemPriceForQuantity instancecopyDeep()deepCopy(DiscountedLineItemPriceForQuantity template) factory method to create a deep copy of DiscountedLineItemPriceForQuantity@NotNull @Valid DiscountedLineItemPrice@NotNull Integerof()factory methodof(DiscountedLineItemPriceForQuantity template) factory method to create a shallow copy DiscountedLineItemPriceForQuantityvoidsetDiscountedPrice(DiscountedLineItemPrice discountedPrice) set discountedPricevoidsetQuantity(Integer quantity) set quantitystatic com.fasterxml.jackson.core.type.TypeReference<DiscountedLineItemPriceForQuantity>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getQuantity
- Returns:
- quantity
-
getDiscountedPrice
- Returns:
- discountedPrice
-
setQuantity
set quantity- Parameters:
quantity- value to be set
-
setDiscountedPrice
set discountedPrice- Parameters:
discountedPrice- value to be set
-
of
factory method- Returns:
- instance of DiscountedLineItemPriceForQuantity
-
of
factory method to create a shallow copy DiscountedLineItemPriceForQuantity- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
DiscountedLineItemPriceForQuantity copyDeep() -
deepCopy
@Nullable static DiscountedLineItemPriceForQuantity deepCopy(@Nullable DiscountedLineItemPriceForQuantity template) factory method to create a deep copy of DiscountedLineItemPriceForQuantity- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DiscountedLineItemPriceForQuantity- Returns:
- builder
-
builder
static DiscountedLineItemPriceForQuantityBuilder builder(DiscountedLineItemPriceForQuantity template) create builder for DiscountedLineItemPriceForQuantity instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withDiscountedLineItemPriceForQuantity
default <T> T withDiscountedLineItemPriceForQuantity(Function<DiscountedLineItemPriceForQuantity, 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<DiscountedLineItemPriceForQuantity> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-