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
-
Method Summary
Modifier and TypeMethodDescriptionstatic HighPrecisionMoneyBuilder
builder()
builder factory method for HighPrecisionMoneystatic HighPrecisionMoneyBuilder
builder
(HighPrecisionMoney template) create builder for HighPrecisionMoney instancestatic HighPrecisionMoney
deepCopy
(HighPrecisionMoney template) factory method to create a deep copy of HighPrecisionMoney@NotNull Long
static HighPrecisionMoney
of()
factory methodstatic HighPrecisionMoney
of
(HighPrecisionMoney template) factory method to create a shallow copy HighPrecisionMoneyvoid
setPreciseAmount
(Long preciseAmount) set preciseAmountstatic com.fasterxml.jackson.core.type.TypeReference<HighPrecisionMoney>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withHighPrecisionMoney
(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
-
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
-