T - the type of elements to join.public static final class AppendableJoiner.Builder<T> extends Object implements Supplier<AppendableJoiner<T>>
AppendableJoiner.| Modifier and Type | Method and Description |
|---|---|
AppendableJoiner<T> |
get()
Gets a new instance of
AppendableJoiner. |
AppendableJoiner.Builder<T> |
setDelimiter(CharSequence delimiter)
Sets the delimiter that separates each element.
|
AppendableJoiner.Builder<T> |
setElementAppender(FailableBiConsumer<Appendable,T,IOException> appender)
Sets the consumer used to render each element of type
T onto an Appendable. |
AppendableJoiner.Builder<T> |
setPrefix(CharSequence prefix)
Sets the sequence of characters to be used at the beginning.
|
AppendableJoiner.Builder<T> |
setSuffix(CharSequence suffix)
Sets the sequence of characters to be used at the end.
|
public AppendableJoiner<T> get()
AppendableJoiner.get in interface Supplier<AppendableJoiner<T>>public AppendableJoiner.Builder<T> setDelimiter(CharSequence delimiter)
delimiter - The delimiter that separates each element.public AppendableJoiner.Builder<T> setElementAppender(FailableBiConsumer<Appendable,T,IOException> appender)
T onto an Appendable.appender - The consumer used to render each element of type T onto an Appendable.public AppendableJoiner.Builder<T> setPrefix(CharSequence prefix)
prefix - The sequence of characters to be used at the beginning.public AppendableJoiner.Builder<T> setSuffix(CharSequence suffix)
suffix - The sequence of characters to be used at the end.Copyright © 2001–2025 The Apache Software Foundation. All rights reserved.