Here you can find the source of toInt(String pString)
public static final Integer toInt(String pString)
//package com.java2s; //License from project: Open Source License public class Main { public static final Integer INTEGER_MAX_VALUE = new Integer( Integer.MAX_VALUE); public static final Integer toInt(String pString) { if (isNull(pString)) { return null; }/* w w w . jav a 2 s . c om*/ if (pString.equals("unbounded")) { return INTEGER_MAX_VALUE; } return Integer.valueOf(pString); } public static boolean isNull(Object pStringOrObject) { if (pStringOrObject == null || pStringOrObject.equals("")) { return true; } return false; } }