Package | Description |
---|---|
com.google.gwt.user.client.rpc.core.java.math | |
com.google.gwt.validation.client.constraints | |
java.math |
Modifier and Type | Method and Description |
---|---|
static BigDecimal |
BigDecimal_CustomFieldSerializer.instantiate(SerializationStreamReader streamReader) |
BigDecimal |
BigDecimal_CustomFieldSerializer.instantiateInstance(SerializationStreamReader streamReader) |
Modifier and Type | Method and Description |
---|---|
static void |
BigDecimal_CustomFieldSerializer.deserialize(SerializationStreamReader streamReader,
BigDecimal instance) |
void |
BigDecimal_CustomFieldSerializer.deserializeInstance(SerializationStreamReader streamReader,
BigDecimal instance) |
static void |
BigDecimal_CustomFieldSerializer.serialize(SerializationStreamWriter streamWriter,
BigDecimal instance) |
void |
BigDecimal_CustomFieldSerializer.serializeInstance(SerializationStreamWriter streamWriter,
BigDecimal instance) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
AbstractDecimalMinValidator.isValid(BigDecimal bigValue) |
protected boolean |
AbstractDecimalMaxValidator.isValid(BigDecimal bigValue) |
protected boolean |
AbstractDigitsValidator.isValid(BigDecimal bigValue) |
Modifier and Type | Field and Description |
---|---|
static BigDecimal |
BigDecimal.ONE
The constant one as a
BigDecimal . |
static BigDecimal |
BigDecimal.TEN
The constant ten as a
BigDecimal . |
static BigDecimal |
BigDecimal.ZERO
The constant zero as a
BigDecimal . |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
BigDecimal.abs()
Returns a new
BigDecimal whose value is the absolute value of
this . |
BigDecimal |
BigDecimal.abs(MathContext mc)
Returns a new
BigDecimal whose value is the absolute value of
this . |
BigDecimal |
BigDecimal.add(BigDecimal augend)
Returns a new
BigDecimal whose value is this + augend . |
BigDecimal |
BigDecimal.add(BigDecimal augend,
MathContext mc)
Returns a new
BigDecimal whose value is this + augend . |
BigDecimal |
BigDecimal.divide(BigDecimal divisor)
Returns a new
BigDecimal whose value is this / divisor . |
BigDecimal |
BigDecimal.divide(BigDecimal divisor,
int roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
BigDecimal |
BigDecimal.divide(BigDecimal divisor,
int scale,
int roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
BigDecimal |
BigDecimal.divide(BigDecimal divisor,
int scale,
RoundingMode roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
BigDecimal |
BigDecimal.divide(BigDecimal divisor,
MathContext mc)
Returns a new
BigDecimal whose value is this / divisor . |
BigDecimal |
BigDecimal.divide(BigDecimal divisor,
RoundingMode roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
BigDecimal[] |
BigDecimal.divideAndRemainder(BigDecimal divisor)
Returns a
BigDecimal array which contains the integral part of
this / divisor at index 0 and the remainder this % divisor
at index 1. |
BigDecimal[] |
BigDecimal.divideAndRemainder(BigDecimal divisor,
MathContext mc)
Returns a
BigDecimal array which contains the integral part of
this / divisor at index 0 and the remainder this % divisor
at index 1. |
BigDecimal |
BigDecimal.divideToIntegralValue(BigDecimal divisor)
Returns a new
BigDecimal whose value is the integral part of
this / divisor . |
BigDecimal |
BigDecimal.divideToIntegralValue(BigDecimal divisor,
MathContext mc)
Returns a new
BigDecimal whose value is the integral part of
this / divisor . |
BigDecimal |
BigDecimal.max(BigDecimal val)
Returns the maximum of this
BigDecimal and val . |
BigDecimal |
BigDecimal.min(BigDecimal val)
Returns the minimum of this
BigDecimal and val . |
BigDecimal |
BigDecimal.movePointLeft(int n)
Returns a new
BigDecimal instance where the decimal point has been
moved n places to the left. |
BigDecimal |
BigDecimal.movePointRight(int n)
Returns a new
BigDecimal instance where the decimal point has been
moved n places to the right. |
BigDecimal |
BigDecimal.multiply(BigDecimal multiplicand)
Returns a new
BigDecimal whose value is this * multiplicand
. |
BigDecimal |
BigDecimal.multiply(BigDecimal multiplicand,
MathContext mc)
Returns a new
BigDecimal whose value is this * multiplicand
. |
BigDecimal |
BigDecimal.negate()
Returns a new
BigDecimal whose value is the -this . |
BigDecimal |
BigDecimal.negate(MathContext mc)
Returns a new
BigDecimal whose value is the -this . |
BigDecimal |
BigDecimal.plus()
Returns a new
BigDecimal whose value is +this . |
BigDecimal |
BigDecimal.plus(MathContext mc)
Returns a new
BigDecimal whose value is +this . |
BigDecimal |
BigDecimal.pow(int n)
Returns a new
BigDecimal whose value is this ^ n . |
BigDecimal |
BigDecimal.pow(int n,
MathContext mc)
Returns a new
BigDecimal whose value is this ^ n . |
BigDecimal |
BigDecimal.remainder(BigDecimal divisor)
Returns a new
BigDecimal whose value is this % divisor . |
BigDecimal |
BigDecimal.remainder(BigDecimal divisor,
MathContext mc)
Returns a new
BigDecimal whose value is this % divisor . |
BigDecimal |
BigDecimal.round(MathContext mc)
Returns a new
BigDecimal whose value is this , rounded
according to the passed context mc . |
BigDecimal |
BigDecimal.scaleByPowerOfTen(int n)
Returns a new
BigDecimal whose value is this 10^n . |
BigDecimal |
BigDecimal.setScale(int newScale)
Returns a new
BigDecimal instance with the specified scale. |
BigDecimal |
BigDecimal.setScale(int newScale,
int roundingMode)
Returns a new
BigDecimal instance with the specified scale. |
BigDecimal |
BigDecimal.setScale(int newScale,
RoundingMode roundingMode)
Returns a new
BigDecimal instance with the specified scale. |
BigDecimal |
BigDecimal.stripTrailingZeros()
Returns a new
BigDecimal instance with the same value as this but with a unscaled value where the trailing zeros have been removed. |
BigDecimal |
BigDecimal.subtract(BigDecimal subtrahend)
Returns a new
BigDecimal whose value is this - subtrahend . |
BigDecimal |
BigDecimal.subtract(BigDecimal subtrahend,
MathContext mc)
Returns a new
BigDecimal whose value is this - subtrahend . |
BigDecimal |
BigDecimal.ulp()
Returns the unit in the last place (ULP) of this
BigDecimal
instance. |
static BigDecimal |
BigDecimal.valueOf(double val)
Returns a new
BigDecimal instance whose value is equal to val . |
static BigDecimal |
BigDecimal.valueOf(long unscaledVal)
Returns a new
BigDecimal instance whose value is equal to unscaledVal . |
static BigDecimal |
BigDecimal.valueOf(long unscaledVal,
int scale)
Returns a new
BigDecimal instance whose value is equal to unscaledVal 10^(-scale ). |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
BigDecimal.add(BigDecimal augend)
Returns a new
BigDecimal whose value is this + augend . |
BigDecimal |
BigDecimal.add(BigDecimal augend,
MathContext mc)
Returns a new
BigDecimal whose value is this + augend . |
int |
BigDecimal.compareTo(BigDecimal val)
Compares this
BigDecimal with val . |
BigDecimal |
BigDecimal.divide(BigDecimal divisor)
Returns a new
BigDecimal whose value is this / divisor . |
BigDecimal |
BigDecimal.divide(BigDecimal divisor,
int roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
BigDecimal |
BigDecimal.divide(BigDecimal divisor,
int scale,
int roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
BigDecimal |
BigDecimal.divide(BigDecimal divisor,
int scale,
RoundingMode roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
BigDecimal |
BigDecimal.divide(BigDecimal divisor,
MathContext mc)
Returns a new
BigDecimal whose value is this / divisor . |
BigDecimal |
BigDecimal.divide(BigDecimal divisor,
RoundingMode roundingMode)
Returns a new
BigDecimal whose value is this / divisor . |
BigDecimal[] |
BigDecimal.divideAndRemainder(BigDecimal divisor)
Returns a
BigDecimal array which contains the integral part of
this / divisor at index 0 and the remainder this % divisor
at index 1. |
BigDecimal[] |
BigDecimal.divideAndRemainder(BigDecimal divisor,
MathContext mc)
Returns a
BigDecimal array which contains the integral part of
this / divisor at index 0 and the remainder this % divisor
at index 1. |
BigDecimal |
BigDecimal.divideToIntegralValue(BigDecimal divisor)
Returns a new
BigDecimal whose value is the integral part of
this / divisor . |
BigDecimal |
BigDecimal.divideToIntegralValue(BigDecimal divisor,
MathContext mc)
Returns a new
BigDecimal whose value is the integral part of
this / divisor . |
BigDecimal |
BigDecimal.max(BigDecimal val)
Returns the maximum of this
BigDecimal and val . |
BigDecimal |
BigDecimal.min(BigDecimal val)
Returns the minimum of this
BigDecimal and val . |
BigDecimal |
BigDecimal.multiply(BigDecimal multiplicand)
Returns a new
BigDecimal whose value is this * multiplicand
. |
BigDecimal |
BigDecimal.multiply(BigDecimal multiplicand,
MathContext mc)
Returns a new
BigDecimal whose value is this * multiplicand
. |
BigDecimal |
BigDecimal.remainder(BigDecimal divisor)
Returns a new
BigDecimal whose value is this % divisor . |
BigDecimal |
BigDecimal.remainder(BigDecimal divisor,
MathContext mc)
Returns a new
BigDecimal whose value is this % divisor . |
BigDecimal |
BigDecimal.subtract(BigDecimal subtrahend)
Returns a new
BigDecimal whose value is this - subtrahend . |
BigDecimal |
BigDecimal.subtract(BigDecimal subtrahend,
MathContext mc)
Returns a new
BigDecimal whose value is this - subtrahend . |
Copyright © 2018. All rights reserved.