Android Utililty Methods String Append

List of utility methods to do String Append

Description

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

Method

Stringappend(final String string, final String append, final String delimiter)
Appends the string `append` to `string` separated by the `delimiter` string.
if (string == null) {
    return append;
} else {
    final StringBuilder builder = new StringBuilder(string);
    if (delimiter != null)
        builder.append(delimiter);
    if (append != null)
        builder.append(append);
...
Stringadd(String str, int num)
add
int i = num;
if (!isBlank(str)) {
    int intStr = Integer.parseInt(str);
    i = i + intStr;
return Integer.toString(i);
StringaddSuffix(String src, String suffix)
add Suffix
if (src == null || suffix == null) {
    return src;
StringBuilder sb = new StringBuilder();
sb.append(src);
sb.append(suffix);
return sb.toString();
StringappendStr(Object... strs)
append Str
if (null == strs) {
    return "";
StringBuilder str = new StringBuilder();
for (Object demp : strs) {
    str.append(demp);
return str.toString();
...
Stringconcat(Object... chunks)
Efficiently concatenates the string representations of the specified objects.
return join(null, chunks);