T - the type of elements to join.public static final class AppendableJoiner.Builder<T> extends java.lang.Object implements java.util.function.Supplier<AppendableJoiner<T>>
AppendableJoiner.| Modifier and Type | Method and Description |
|---|---|
AppendableJoiner<T> |
get()
Gets a new instance of
AppendableJoiner. |
AppendableJoiner.Builder<T> |
setDelimiter(java.lang.CharSequence delimiter)
Sets the delimiter that separates each element.
|
AppendableJoiner.Builder<T> |
setElementAppender(FailableBiConsumer<java.lang.Appendable,T,java.io.IOException> appender)
Sets the consumer used to render each element of type
T onto an Appendable. |
AppendableJoiner.Builder<T> |
setPrefix(java.lang.CharSequence prefix)
Sets the sequence of characters to be used at the beginning.
|
AppendableJoiner.Builder<T> |
setSuffix(java.lang.CharSequence suffix)
Sets the sequence of characters to be used at the end.
|
public AppendableJoiner<T> get()
AppendableJoiner.get in interface java.util.function.Supplier<AppendableJoiner<T>>public AppendableJoiner.Builder<T> setDelimiter(java.lang.CharSequence delimiter)
delimiter - The delimiter that separates each element.public AppendableJoiner.Builder<T> setElementAppender(FailableBiConsumer<java.lang.Appendable,T,java.io.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(java.lang.CharSequence prefix)
prefix - The sequence of characters to be used at the beginning.public AppendableJoiner.Builder<T> setSuffix(java.lang.CharSequence suffix)
suffix - The sequence of characters to be used at the end.Copyright © 2010 - 2025 Adobe. All Rights Reserved