public static String nullToEmpty(@Nullable CharSequence string){
  return string == null ? EMPTY : string.toString();
}

public static String nullToEmpty ( @ Nullable CharSequence string ) { return string == null ? EMPTY : string . toString ( ) ; }
returns the given string if it is non - null ; the empty string otherwise .
