| 程序包 | 说明 |
|---|---|
| cn.ponfee.commons.util |
| 限定符和类型 | 方法和说明 |
|---|---|
Money |
Money.add(Money other)
Returns new Money object of the two money addition
|
Money |
Money.addTo(Money other)
This money addition other money
|
Money |
Money.clone()
Returns this object's clone
|
Money |
Money.JacksonDeserializer.deserialize(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext ctx) |
Money |
Money.Fastjson.deserialze(com.alibaba.fastjson.parser.DefaultJSONParser parser,
Type type,
Object fieldName) |
Money |
Money.divide(BigDecimal val) |
Money |
Money.divide(BigDecimal val,
RoundingMode roundingMode) |
Money |
Money.divideBy(BigDecimal val) |
Money |
Money.divideBy(BigDecimal val,
RoundingMode roundingMode) |
Money |
Money.multiply(BigDecimal val)
Returns new Money object of this money multiply value
|
Money |
Money.multiply(BigDecimal val,
RoundingMode roundingMode)
Returns new Money object of this money multiply value
|
Money |
Money.multiply(long val)
Returns new Money object of this money multiply value
|
Money |
Money.multiplyBy(BigDecimal val)
This money multiply value factor
|
Money |
Money.multiplyBy(BigDecimal val,
RoundingMode roundingMode)
This money multiply value factor
|
Money |
Money.multiplyBy(long val)
This money multiply value factor
|
static Money |
Money.of(CurrencyEnum currencyEnum,
long number) |
static Money |
Money.of(Currency currency,
long number) |
static Money |
Money.of(String currencyCode,
long number) |
static Money |
Money.ofMajor(Currency currency,
BigDecimal majorUnitNumber,
RoundingMode roundingMode)
Creates a new Money instance with the specified currency, major number and rounding mode.
|
static Money |
Money.ofMajor(CurrencyEnum currencyEnum,
BigDecimal majorUnitNumber,
RoundingMode roundingMode) |
Money |
Money.ofMajor(CurrencyEnum currencyEnum,
String majorUnitNumber,
RoundingMode roundingMode) |
Money |
Money.ofMajor(Currency currency,
String majorUnitNumber,
RoundingMode roundingMode) |
static Money |
Money.ofMajor(String currencyCode,
BigDecimal majorUnitNumber,
RoundingMode roundingMode) |
Money |
Money.ofMajor(String currencyCode,
String majorUnitNumber,
RoundingMode roundingMode) |
Money[] |
Money.slice(int segment)
Average slice this money to segment part
|
Money[] |
Money.slice(long[] ratios)
Slice this money with specified ratios
|
Money |
Money.subtract(Money other)
Returns new Money object of the two money subtraction
|
Money |
Money.subtractFrom(Money other)
This money subtraction other money
|
static Money |
Money.zero(Currency currency)
Obtains an instance of
Money representing zero at a specific currency. |
static Money |
Money.zero(CurrencyEnum currencyEnum) |
static Money |
Money.zero(String currencyCode) |
| 限定符和类型 | 方法和说明 |
|---|---|
Money |
Money.add(Money other)
Returns new Money object of the two money addition
|
Money |
Money.addTo(Money other)
This money addition other money
|
int |
Money.compareTo(Money other)
Compares with other money object.
|
boolean |
Money.equals(Money other)
Returns boolean of equals other money object
|
boolean |
Money.greaterThan(Money other)
Compares is greater than other money.
|
void |
Money.JacksonSerializer.serialize(Money money,
com.fasterxml.jackson.core.JsonGenerator generator,
com.fasterxml.jackson.databind.SerializerProvider serializerProvider) |
Money |
Money.subtract(Money other)
Returns new Money object of the two money subtraction
|
Money |
Money.subtractFrom(Money other)
This money subtraction other money
|
Copyright © 2023. All rights reserved.