Here you can find the source of getIntValue(BigDecimal b)
public static int getIntValue(BigDecimal b)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { public static int getIntValue(BigDecimal b) { if (b == null) { return 0; }/*from www . j ava2 s . c om*/ return b.intValue(); } }