@ThreadSafe public final class StringBuilderX extends Object
Modifier and Type | Method and Description |
---|---|
static StringBuilder |
clear(StringBuilder b)
Clears the string builder.
|
static StringBuilder |
collapseAndTrim(StringBuilder b)
Collapses contiguous runs of whitespace to a single space each, and trims all
whitepace from the ends.
|
static StringBuilder |
trim(StringBuilder b)
Trims all whitepace from the ends.
|
public static StringBuilder clear(StringBuilder b)
public static StringBuilder collapseAndTrim(StringBuilder b)
public static StringBuilder trim(StringBuilder b)