StringBuffer
A simplified, mutable sequence of characters similar in spirit to Java’s StringBuffer.
Note: This implementation is not truly thread‑safe.
Constructors
Constructs a StringBuffer with an initial capacity of 16 characters. (The capacity is not actually enforced in this simple version.)
Constructs a StringBuffer with the specified initial capacity. The capacity parameter is advisory only.
Constructs a StringBuffer initialized to the contents of the given string.
Constructs a StringBuffer that contains the same characters as the specified CharSequence.
Functions
Appends the string representation of the obj to this buffer.
Returns the Unicode code point at the specified index of this CharSequence.
Returns a stream of code point values from this sequence. Any surrogate pairs encountered in the sequence are combined as if by {@linkplain Character#toCodePoint Character.toCodePoint} and the result is passed to the stream. Any other code units, including ordinary BMP characters, unpaired surrogates, and undefined code units, are zero-extended to {@code int} values which are then passed to the stream.
Compares this StringBuffer with another lexicographically.