public final class StringAdd
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.CharSequence |
cs |
private int |
size |
private java.lang.StringBuilder |
u |
Constructor and Description |
---|
StringAdd(int defaultSizeBuffer)
The ctor does not create a StringBuilder.
|
Modifier and Type | Method and Description |
---|---|
StringAdd |
add(char cc)
Adds a Character.
|
StringAdd |
add(java.lang.CharSequence src)
Adds a String.
|
private java.lang.StringBuilder |
buffer()
Creates or returns the StringBuilder Buffer.
|
java.lang.CharSequence |
get()
Returns either src from only one add or the internal StringBuilder.
|
java.lang.String |
toString()
Returns either the only one added CharSequence src or the content of the internal Buffer (StringBuilder).
|
private java.lang.StringBuilder u
private java.lang.CharSequence cs
private int size
public StringAdd(int defaultSizeBuffer)
defaultSizeBuffer
- Only stored if necessary.private java.lang.StringBuilder buffer()
public StringAdd add(java.lang.CharSequence src)
src
- public StringAdd add(char cc)
src
- public java.lang.CharSequence get()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()