public static String toStringWithDefault ( Object value , String defaultValue ) { String result = toNullableString ( value ) ; return result != null ? result : defaultValue ; }
Converts value into string or returns default when value is null .