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 instancedeepCopy
(DiscountedLineItemPriceForQuantity template) factory method to create a deep copy of DiscountedLineItemPriceForQuantity@NotNull @Valid DiscountedLineItemPrice
@NotNull Integer
of()
factory methodof
(DiscountedLineItemPriceForQuantity template) factory method to create a shallow copy DiscountedLineItemPriceForQuantityvoid
setDiscountedPrice
(DiscountedLineItemPrice discountedPrice) set discountedPricevoid
setQuantity
(Integer quantity) set quantitystatic com.fasterxml.jackson.core.type.TypeReference<DiscountedLineItemPriceForQuantity>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor 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
-
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
-