Android Utililty Methods String Null Convert

List of utility methods to do String Null Convert

Description

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

Method

StringtoStringWhenNullOrEmptyOrSpace(Object src, String newValue)
to String When Null Or Empty Or Space
if (src == null) {
    return newValue;
String srcStr = src.toString();
if ((srcStr == null) || (srcStr.trim().equals(""))) {
    return newValue;
return srcStr;
...