急求BigDecimal 与 hashmap的转换,多谢了

急求BigDecimal 与 hashmap的转换,谢谢了BigDecimal endValue1 xxxx;HashMapString, Object endValue

急求BigDecimal 与 hashmap的转换,谢谢了
BigDecimal endValue1 = xxxx;
HashMap<String, Object> endValue = 
如何将endValue1的值赋值给HashMap的endValue?


[解决办法]
不是很清楚你的意思,怎么算 “endValue1的值赋值给HashMap的endValue”?
这本来就是两个类型,可以让endValue1作为endValue的一个值

Java code
BigDecimal endValue1 = xxxx;        HashMap<String, Object> endValue =new HashMap<String, Object>();        endValue.put("value1", endValue1);