Here you can find the source of toIntDefaultIfNull(Integer configured, int theDefault)
public static int toIntDefaultIfNull(Integer configured, int theDefault)
//package com.java2s; //License from project: Apache License public class Main { public static int toIntDefaultIfNull(Integer configured, int theDefault) { return configured != null ? configured.intValue() : theDefault; }/*from w w w.j a v a 2 s. co m*/ }