List of utility methods to do Object to String Convert
String | getStringValue(Object str, String def) get String Value String s = (String) str; if (null == s || isEmpty(s) || "false".equals(s)) { s = def; return s; |
String | objToStrNotNull(Object obj) obj To Str Not Null String s = (obj == null) ? "" : obj.toString(); return s; |