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, toString
reverseString
public void append(Object a, boolean x)
StringBufferImpl
append
in class StringBufferImplArrayBase
public void append(Object a, double x)
StringBufferImpl
append
in class StringBufferImplArrayBase
public void append(Object a, float x)
StringBufferImpl
append
in class StringBufferImplArrayBase
public void append(Object a, int x)
StringBufferImpl
append
in class StringBufferImplArrayBase
public void appendNonNull(Object a, String x)
StringBufferImpl
appendNonNull
in class StringBufferImplArrayBase
Copyright © 2018. All rights reserved.