Builder

constructor()

Create a new instance of the builder with default initial capacity 16.


constructor(@NonNull initial: String)

Create a new instance of the builder with the specified initial string.

Parameters

initial

the initial string of the StringBuilder


constructor(capacity: Int)

Create a new instance of the builder with the specified initial capacity.

Parameters

capacity

the initial capacity of the StringBuilder