Here you can find the source of bigDecimalToInteger(BigDecimal value)
public static Integer bigDecimalToInteger(BigDecimal value)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static Integer bigDecimalToInteger(BigDecimal value) { if (value != null) { return new Integer(value.intValue()); }//from w w w. ja v a2s . c o m return null; } }