public class StringBuilderUtilsImpl extends java.lang.Object implements StringBuilderUtils
Constructor and Description |
---|
StringBuilderUtilsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
appendWithComma(java.lang.StringBuilder stringBuilder,
java.lang.String append)
Appends a value to a string builder with a comma if the string builder is not empty
|
void |
appendWithDelimiter(java.lang.StringBuilder stringBuilder,
java.lang.String append,
java.lang.String delimiter) |
void |
appendWithSemicolon(java.lang.StringBuilder stringBuilder,
java.lang.String append)
Appends a value to a string builder with a semicolon if the string builder is not empty
|
void |
appendWithSpace(java.lang.StringBuilder stringBuilder,
java.lang.String append)
Appends a value to a string builder with a space if the string builder is not empty
|
public void appendWithSpace(java.lang.StringBuilder stringBuilder, java.lang.String append)
appendWithSpace
in interface StringBuilderUtils
stringBuilder
- The string builder to append toappend
- The string to appendpublic void appendWithComma(java.lang.StringBuilder stringBuilder, java.lang.String append)
appendWithComma
in interface StringBuilderUtils
stringBuilder
- The string builder to append toappend
- The string to appendpublic void appendWithSemicolon(java.lang.StringBuilder stringBuilder, java.lang.String append)
appendWithSemicolon
in interface StringBuilderUtils
stringBuilder
- The string builder to append toappend
- The string to appendpublic void appendWithDelimiter(java.lang.StringBuilder stringBuilder, java.lang.String append, java.lang.String delimiter)
appendWithDelimiter
in interface StringBuilderUtils