Interface TaxedItemPrice
public interface TaxedItemPrice
TaxedItemPrice
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TaxedItemPrice taxedItemPrice = TaxedItemPrice.builder()
.totalNet(totalNetBuilder -> totalNetBuilder)
.totalGross(totalGrossBuilder -> totalGrossBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic TaxedItemPriceBuilder
builder()
builder factory method for TaxedItemPricestatic TaxedItemPriceBuilder
builder
(TaxedItemPrice template) create builder for TaxedItemPrice instancestatic TaxedItemPrice
deepCopy
(TaxedItemPrice template) factory method to create a deep copy of TaxedItemPrice@NotNull @Valid Money
@NotNull @Valid Money
static TaxedItemPrice
of()
factory methodstatic TaxedItemPrice
of
(TaxedItemPrice template) factory method to create a shallow copy TaxedItemPricevoid
setTotalGross
(Money totalGross) set totalGrossvoid
setTotalNet
(Money totalNet) set totalNetstatic com.fasterxml.jackson.core.type.TypeReference<TaxedItemPrice>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withTaxedItemPrice
(Function<TaxedItemPrice, T> helper) accessor map function
-
Method Details
-
getTotalNet
- Returns:
- totalNet
-
getTotalGross
- Returns:
- totalGross
-
setTotalNet
set totalNet- Parameters:
totalNet
- value to be set
-
setTotalGross
set totalGross- Parameters:
totalGross
- value to be set
-
of
factory method- Returns:
- instance of TaxedItemPrice
-
of
factory method to create a shallow copy TaxedItemPrice- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of TaxedItemPrice- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TaxedItemPrice- Returns:
- builder
-
builder
create builder for TaxedItemPrice instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTaxedItemPrice
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
-