Android Utililty Methods Object to String Convert

List of utility methods to do Object to String Convert

Description

The list of methods to do Object to String Convert are organized into topic(s).

Method

StringgetStringValue(Object str, String def)
get String Value
String s = (String) str;
if (null == s || isEmpty(s) || "false".equals(s)) {
    s = def;
return s;
StringobjToStrNotNull(Object obj)
obj To Str Not Null
String s = (obj == null) ? "" : obj.toString();
return s;