Package org.apache.commons.lang3
Class AppendableJoiner.Builder<T>
java.lang.Object
org.apache.commons.lang3.AppendableJoiner.Builder<T>
- Type Parameters:
- T- the type of elements to join.
- All Implemented Interfaces:
- Supplier<AppendableJoiner<T>>
- Enclosing class:
- AppendableJoiner<T>
public static final class AppendableJoiner.Builder<T>
extends Object
implements Supplier<AppendableJoiner<T>>
Builds instances of 
AppendableJoiner.- 
Method SummaryModifier and TypeMethodDescriptionget()Gets a new instance ofAppendableJoiner.setDelimiter(CharSequence delimiter) Sets the delimiter that separates each element.setElementAppender(FailableBiConsumer<Appendable, T, IOException> appender) Sets the consumer used to render each element of typeTonto anAppendable.setPrefix(CharSequence prefix) Sets the sequence of characters to be used at the beginning.setSuffix(CharSequence suffix) Sets the sequence of characters to be used at the end.
- 
Method Details- 
getGets a new instance ofAppendableJoiner.
- 
setDelimiterSets the delimiter that separates each element.- Parameters:
- delimiter- The delimiter that separates each element.
- Returns:
- this instance.
 
- 
setElementAppenderpublic AppendableJoiner.Builder<T> setElementAppender(FailableBiConsumer<Appendable, T, IOException> appender) Sets the consumer used to render each element of typeTonto anAppendable.- Parameters:
- appender- The consumer used to render each element of type- Tonto an- Appendable.
- Returns:
- this instance.
 
- 
setPrefixSets the sequence of characters to be used at the beginning.- Parameters:
- prefix- The sequence of characters to be used at the beginning.
- Returns:
- this instance.
 
- 
setSuffixSets the sequence of characters to be used at the end.- Parameters:
- suffix- The sequence of characters to be used at the end.
- Returns:
- this instance.
 
 
-