Here you can find the source of getParamBigDecimal(Map
public static BigDecimal getParamBigDecimal(Map<String, String[]> paramMap, String paramName)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; import java.util.Map; public class Main { public static BigDecimal getParamBigDecimal(Map<String, String[]> paramMap, String paramName) { String[] paramArr = paramMap.get(paramName); if (paramArr == null || paramArr.length == 0) return null; try {/*from w w w . j a v a2 s . co m*/ return new BigDecimal(paramArr[0]); } catch (Exception e) { return null; } } }