Package ru.tinkoff.acquiring.sdk.utils
Class Money
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public final class Money implements Serializable, Comparable<Money>
Осуществляет преобразование денежных единиц
Mariya Chernyadieva
-
-
Field Summary
Fields Modifier and Type Field Description public final static ByteCOINS_IN_RUBLEpublic final static StringDEFAULT_INT_DIVIDERpublic final static StringDEFAULT_INT_FRACT_DIVIDERprivate final Longcoins
-
Constructor Summary
Constructors Constructor Description Money()
-
Method Summary
Modifier and Type Method Description final LonggetCoins()StringtoString()Booleanequals(Object other)IntegerhashCode()IntegercompareTo(Money other)final StringtoHumanReadableString()final static MoneyofRubles(Long rubles)Перевод копейки в рубли final static MoneyofRubles(BigDecimal value)final static MoneyofRubles(Double rubles)final static MoneyofCoins(Long coins)Перевод рубли в копейки -
-
Method Detail
-
toHumanReadableString
final String toHumanReadableString()
-
ofRubles
final static Money ofRubles(BigDecimal value)
-
-
-
-