Java Utililty Methods BigDecimal from

List of utility methods to do BigDecimal from

Description

The list of methods to do BigDecimal from are organized into topic(s).

Method

BigDecimaltoBigDecimal(String s)
to Big Decimal
return toBigDecimal(s, null);
BigDecimaltoBigDecimal(String s)
to Big Decimal
return new BigDecimal(s.trim());
BigDecimaltoBigDecimal(String s, int scale)
to Big Decimal
try {
    return new BigDecimal(new BigInteger(s.trim()), scale);
} catch (NumberFormatException e) {
    return null;
BigDecimaltoBigDecimal(String str)
to Big Decimal
if (str == null || str.isEmpty()) {
    return null;
return new BigDecimal(str);
BigDecimaltoBigDecimal(String value)
to Big Decimal
if (null == value) {
    return null;
value = value.trim();
if ("null".equals(value)) {
    return null;
return new BigDecimal(value);
...
BigDecimaltoBigDecimal(String value)
Converts java.lang.String to java.math.BigDecimal
return BigDecimal.valueOf(toDouble(value));
BigDecimaltoBigDecimal(String value)
to Big Decimal
return toBigDecimal(value, new BigDecimal("0.0"));
BigDecimaltoBigDecimal(String value)
to Big Decimal
if (isNumber(value)) {
    return new BigDecimal(value);
return null;
BigDecimaltoBigDecimal(T value)
to Big Decimal
return (value != null ? BigDecimal.valueOf(value.doubleValue()) : null);
VectortoBigDecimal(Vector doubleVector)
to Big Decimal
Vector<BigDecimal> bigDecimalVector = null;
if (doubleVector != null) {
    bigDecimalVector = new Vector<BigDecimal>();
    for (Double d : doubleVector) {
        bigDecimalVector.add(new BigDecimal(d));
return bigDecimalVector;
...