
public class StringBufferImplPush extends StringBufferImplArrayBase
StringBufferImplArrayBase that uses push for
appending strings. Some external benchmarks suggest this implementation, but
in practice our measurements indication that StringBufferImplArray
has a slight edge on every browser; the performance is often very close to
StringBufferImplConcat.| Constructor and Description |
|---|
StringBufferImplPush() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(Object a,
boolean x)
Append for primitive; the value can be stored and only later converted to a string.
|
void |
append(Object a,
double x)
Append for primitive; the value can be stored and only later converted to a
string.
|
void |
append(Object a,
float x)
Append for primitive; the value can be stored and only later converted to a
string.
|
void |
append(Object a,
int x)
Append for primitive; the value can be stored and only later converted to a
string.
|
void |
appendNonNull(Object a,
String x)
Append for a string that is definitely not null.
|
append, append, createData, length, replace, reverse, takeString, toStringreverseStringpublic void append(Object a, boolean x)
StringBufferImplappend in class StringBufferImplArrayBasepublic void append(Object a, double x)
StringBufferImplappend in class StringBufferImplArrayBasepublic void append(Object a, float x)
StringBufferImplappend in class StringBufferImplArrayBasepublic void append(Object a, int x)
StringBufferImplappend in class StringBufferImplArrayBasepublic void appendNonNull(Object a, String x)
StringBufferImplappendNonNull in class StringBufferImplArrayBaseCopyright © 2018. All rights reserved.