Java BigDecimal Create getBigDecimal(Map map, String attr)

Here you can find the source of getBigDecimal(Map map, String attr)

Description

get Big Decimal

License

Open Source License

Declaration

public static BigDecimal getBigDecimal(Map map, String attr) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.math.BigDecimal;

import java.util.Map;

public class Main {
    public static BigDecimal getBigDecimal(Map map, String attr) {
        return (BigDecimal) map.get(attr);
    }/*from  w w  w .j av a  2  s. c o  m*/

    public static <T> T get(Map map, String attr) {
        return (T) (map.get(attr));
    }

    public static <T> T get(Map map, String attr, Object defaultValue) {
        Object result = map.get(attr);
        return (T) (result != null ? result : defaultValue);
    }
}

Related

  1. getBdIgnoreNull(BigDecimal bigDecimalPara)
  2. getBigDecimal(BigDecimal bigDecimal)
  3. getBigDecimal(double value, int decimals)
  4. getBigDecimal(final String str, final int scale)
  5. getBigDecimal(JsonObject object, String memberName)
  6. getBigDecimal(Number number)
  7. getBigDecimal(Object number)
  8. getBigDecimal(Object o)
  9. getBigDecimal(Object o)