Here you can find the source of intValue(BigDecimal a)
public static int intValue(BigDecimal a)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static int intValue(Integer a) { if (a == null) { return 0; }//from w w w .j ava 2s. co m return a.intValue(); } public static int intValue(BigDecimal a) { if (a == null) { return 0; } return a.intValue(); } }