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 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 Details
-
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) -
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
-