public class Money
Осуществляет преобразование денежных единиц
| Modifier and Type | Class and Description |
|---|---|
static class |
Money.Companion |
| Modifier and Type | Field and Description |
|---|---|
static Money.Companion |
Companion |
static java.lang.String |
DEFAULT_INT_DIVIDER |
static java.lang.String |
DEFAULT_INT_FRACT_DIVIDER |
| Constructor and Description |
|---|
Money() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Money other) |
boolean |
equals(java.lang.Object other) |
long |
getCoins() |
int |
hashCode() |
static Money |
ofCoins(long coins)
Перевод рубли в копейки
|
static Money |
ofRubles(long rubles)
Перевод копейки в рубли
|
static Money |
ofRubles(java.math.BigDecimal value) |
static Money |
ofRubles(double rubles) |
java.lang.String |
toHumanReadableString() |
java.lang.String |
toString() |
public static java.lang.String DEFAULT_INT_DIVIDER
public static java.lang.String DEFAULT_INT_FRACT_DIVIDER
public static Money.Companion Companion
public java.lang.String toString()
public boolean equals(java.lang.Object other)
public int hashCode()
public int compareTo(Money other)
public java.lang.String toHumanReadableString()
public long getCoins()
public static Money ofRubles(long rubles)
Перевод копейки в рубли
public static Money ofRubles(java.math.BigDecimal value)
public static Money ofRubles(double rubles)
public static Money ofCoins(long coins)
Перевод рубли в копейки