Class CurrencyValue
java.lang.Object
org.teamapps.ux.component.field.multicurrency.value.CurrencyValue
public class CurrencyValue
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description CurrencyValue(CurrencyUnit currency, java.math.BigDecimal amount) -
Method Summary
Modifier and Type Method Description java.util.Optional<java.math.BigDecimal>getAmount()java.util.Optional<java.lang.Long>getAmountAsLong(int pointRightShift)java.util.Optional<CurrencyUnit>getCurrency()org.teamapps.dto.UiCurrencyValuetoUiCurrencyValue(java.util.Locale locale)CurrencyValuewithAmount(java.math.BigDecimal amount)CurrencyValuewithCurrencyUnit(CurrencyUnit currencyUnit)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CurrencyValue
-
-
Method Details
-
getCurrency
-
getAmount
public java.util.Optional<java.math.BigDecimal> getAmount() -
getAmountAsLong
public java.util.Optional<java.lang.Long> getAmountAsLong(int pointRightShift) -
withAmount
-
withCurrencyUnit
-
toUiCurrencyValue
public org.teamapps.dto.UiCurrencyValue toUiCurrencyValue(java.util.Locale locale)
-