AppendableJoiner.Builder¶
- public static final class org.apache.commons.lang3.AppendableJoiner.Builder<T> implements Supplier<AppendableJoiner<T>>[source]¶
Builds instances of
AppendableJoiner.- Parameters:
<T> – The type of elements to join.
Methods¶
Gets a new instance of |
|
Sets the delimiter that separates each element. |
|
Sets the consumer used to render each element of type |
|
Sets the sequence of characters to be used at the beginning. |
|
Sets the sequence of characters to be used at the end. |
- @Override public AppendableJoiner<T> get()[source]¶
Gets a new instance of
AppendableJoiner.
- public AppendableJoiner.Builder<T> setDelimiter(CharSequence delimiter)[source]¶
Sets the delimiter that separates each element.
- Parameters:
delimiter – The delimiter that separates each element.
- Returns:
thisinstance.
- public AppendableJoiner.Builder<T> setElementAppender(FailableBiConsumer<Appendable, T, IOException> appender)[source]¶
Sets the consumer used to render each element of type
Tonto anAppendable.- Parameters:
appender – The consumer used to render each element of type
Tonto anAppendable.- Returns:
thisinstance.
- public AppendableJoiner.Builder<T> setPrefix(CharSequence prefix)[source]¶
Sets the sequence of characters to be used at the beginning.
- Parameters:
prefix – The sequence of characters to be used at the beginning.
- Returns:
thisinstance.
- public AppendableJoiner.Builder<T> setSuffix(CharSequence suffix)[source]¶
Sets the sequence of characters to be used at the end.
- Parameters:
suffix – The sequence of characters to be used at the end.
- Returns:
thisinstance.