public final class StringJoiner extends Object
Constructor and Description |
---|
StringJoiner(CharSequence delimiter) |
StringJoiner(CharSequence delimiter,
CharSequence prefix,
CharSequence suffix) |
Modifier and Type | Method and Description |
---|---|
StringJoiner |
add(CharSequence newElement) |
int |
length() |
StringJoiner |
merge(StringJoiner other) |
StringJoiner |
setEmptyValue(CharSequence emptyValue) |
String |
toString() |
public StringJoiner(CharSequence delimiter)
public StringJoiner(CharSequence delimiter, CharSequence prefix, CharSequence suffix)
public StringJoiner add(CharSequence newElement)
public int length()
public StringJoiner merge(StringJoiner other)
public StringJoiner setEmptyValue(CharSequence emptyValue)
Copyright © 2018. All rights reserved.