| Package | Description |
|---|---|
| mobi.designmyapp.common.deserializer | |
| mobi.designmyapp.common.model | |
| mobi.designmyapp.common.utils |
| Modifier and Type | Method and Description |
|---|---|
Price |
PriceDeserializer.deserialize(JsonParser jsonParser,
DeserializationContext deserializationContext) |
| Modifier and Type | Field and Description |
|---|---|
static Price |
Price.ONE |
Price |
Pricing.templatePrice |
static Price |
Price.TEN |
static Price |
Price.ZERO |
| Modifier and Type | Method and Description |
|---|---|
Price |
Price.abs()
Returns a
BigDecimal whose value is the absolute value
of this BigDecimal, and whose scale is
this.scale(). |
Price |
Price.add(BigDecimal augend)
Returns a
BigDecimal whose value is (this +
augend), and whose scale is max(this.scale(),
augend.scale()). |
Price |
Price.divide(BigDecimal divisor)
Returns a
BigDecimal whose value is (this /
divisor), and whose preferred scale is (this.scale() -
divisor.scale()); if the exact quotient cannot be
represented (because it has a non-terminating decimal
expansion) an ArithmeticException is thrown. |
Price |
Price.max(BigDecimal val)
Returns the maximum of this
BigDecimal and val. |
Price |
Price.min(BigDecimal val)
Returns the minimum of this
BigDecimal and
val. |
Price |
Price.multiply(BigDecimal multiplicand)
Returns a
BigDecimal whose value is (this ×
multiplicand), and whose scale is (this.scale() +
multiplicand.scale()). |
Price |
Price.negate()
Returns a
BigDecimal whose value is (-this),
and whose scale is this.scale(). |
Price |
Price.plus()
Returns a
BigDecimal whose value is (+this), and whose
scale is this.scale(). |
Price |
Price.subtract(BigDecimal subtrahend)
Returns a
BigDecimal whose value is (this -
subtrahend), and whose scale is max(this.scale(),
subtrahend.scale()). |
| Modifier and Type | Method and Description |
|---|---|
static Price |
PriceUtils.create(String number) |
static Price |
PriceUtils.round(Price Price) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
PriceUtils.eq(Price price,
Price Price) |
static boolean |
PriceUtils.isNegative(Price Price) |
static boolean |
PriceUtils.isZero(Price Price) |
static Price |
PriceUtils.round(Price Price) |
Copyright © 2015. All rights reserved.