Interface HighPrecisionMoney
- All Superinterfaces:
TypedMoney
HighPrecisionMoney
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
HighPrecisionMoney highPrecisionMoney = HighPrecisionMoney.builder()
.centAmount(0.3)
.currencyCode("{currencyCode}")
.preciseAmount(0.3)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic HighPrecisionMoneyBuilderbuilder()builder factory method for HighPrecisionMoneystatic HighPrecisionMoneyBuilderbuilder(HighPrecisionMoney template) create builder for HighPrecisionMoney instancecopyDeep()static HighPrecisionMoneydeepCopy(HighPrecisionMoney template) factory method to create a deep copy of HighPrecisionMoney@NotNull Longstatic HighPrecisionMoneyof()factory methodstatic HighPrecisionMoneyof(HighPrecisionMoney template) factory method to create a shallow copy HighPrecisionMoneyvoidsetPreciseAmount(Long preciseAmount) set preciseAmountstatic com.fasterxml.jackson.core.type.TypeReference<HighPrecisionMoney>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithHighPrecisionMoney(Function<HighPrecisionMoney, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.TypedMoney
getCentAmount, getCurrencyCode, getFractionDigits, getType, setCentAmount, setCurrencyCode, setFractionDigits, withTypedMoney
-
Field Details
-
HIGH_PRECISION
discriminator value for HighPrecisionMoney- See Also:
-
-
Method Details
-
getPreciseAmount
- Returns:
- preciseAmount
-
setPreciseAmount
set preciseAmount- Parameters:
preciseAmount- value to be set
-
of
factory method- Returns:
- instance of HighPrecisionMoney
-
of
factory method to create a shallow copy HighPrecisionMoney- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
HighPrecisionMoney copyDeep()- Specified by:
copyDeepin interfaceTypedMoney
-
deepCopy
factory method to create a deep copy of HighPrecisionMoney- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for HighPrecisionMoney- Returns:
- builder
-
builder
create builder for HighPrecisionMoney instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withHighPrecisionMoney
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
-