Sets the value to return from toString() when no elements have been added. By default, the empty value is prefix + suffix.
Example:
var joiner = new StringJoiner (", ", "[", "]");
joiner.setEmptyValue ("EMPTY");
assert (joiner.toString () == "EMPTY");
| value |
the string to use when no elements are present. |
|
this StringJoiner for chaining. |