Here you can find the source of toStrNotNull(Object obj, String defaultStr)
public static final String toStrNotNull(Object obj, String defaultStr)
//package com.java2s; public class Main { public static final String toStrNotNull(Object obj, String defaultStr) { String s = (obj == null) ? defaultStr : obj.toString(); return s; }/*from www .j a va 2s . c om*/ }