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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Optional<java.math.BigDecimal>getAmount()java.util.Optional<java.lang.Long>getAmountAsLong(int pointRightShift)java.util.Optional<CurrencyUnit>getCurrency()inthashCode()java.lang.StringtoString()org.teamapps.dto.UiCurrencyValuetoUiCurrencyValue(java.util.Locale locale)CurrencyValuewithAmount(java.math.BigDecimal amount)CurrencyValuewithCurrencyUnit(CurrencyUnit currencyUnit)
-
-
-
Constructor Detail
-
CurrencyValue
public CurrencyValue(CurrencyUnit currency, java.math.BigDecimal amount)
-
-
Method Detail
-
getCurrency
public java.util.Optional<CurrencyUnit> getCurrency()
-
getAmount
public java.util.Optional<java.math.BigDecimal> getAmount()
-
getAmountAsLong
public java.util.Optional<java.lang.Long> getAmountAsLong(int pointRightShift)
-
withAmount
public CurrencyValue withAmount(java.math.BigDecimal amount)
-
withCurrencyUnit
public CurrencyValue withCurrencyUnit(CurrencyUnit currencyUnit)
-
toUiCurrencyValue
public org.teamapps.dto.UiCurrencyValue toUiCurrencyValue(java.util.Locale locale)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-