Class Overview
A StringBufferImpl
that uses += for appending strings. This appears
to be the fastest implementation everywhere except IE, where it's terrible.
Summary
Public Methods |
void
|
append(Object data, float x)
Append for primitive; the value can be stored and only later converted to a
string.
|
void
|
append(Object data, double x)
Append for primitive; the value can be stored and only later converted to a
string.
|
void
|
append(Object data, int x)
Append for primitive; the value can be stored and only later converted to a
string.
|
void
|
append(Object data, boolean x)
Append for primitive; the value can be stored and only later converted to a
string.
|
void
|
append(Object data, Object x)
Append for object.
|
void
|
append(Object data, String x)
Append for a possibly null string object.
|
void
|
appendNonNull(Object data, String x)
Append for a string that is definitely not null.
|
Object
|
createData()
Returns a data holder object for use with subsequent calls.
|
int
|
length(Object data)
Returns the current length of the string buffer.
|
void
|
replace(Object data, int start, int end, String toInsert)
Replaces a segment of the string buffer.
|
String
|
toString(Object data)
Returns the string buffer as a String.
|
[Expand]
Inherited Methods |
From class
com.google.gwt.core.client.impl.StringBufferImpl
abstract
void
|
append(Object data, float x)
Append for primitive; the value can be stored and only later converted to a
string.
|
abstract
void
|
append(Object data, double x)
Append for primitive; the value can be stored and only later converted to a
string.
|
abstract
void
|
append(Object data, int x)
Append for primitive; the value can be stored and only later converted to a
string.
|
abstract
void
|
append(Object data, boolean x)
Append for primitive; the value can be stored and only later converted to a
string.
|
abstract
void
|
append(Object data, Object x)
Append for object.
|
abstract
void
|
append(Object data, String x)
Append for a possibly null string object.
|
abstract
void
|
appendNonNull(Object data, String x)
Append for a string that is definitely not null.
|
abstract
Object
|
createData()
Returns a data holder object for use with subsequent calls.
|
abstract
int
|
length(Object data)
Returns the current length of the string buffer.
|
abstract
void
|
replace(Object data, int start, int end, String toInsert)
Replaces a segment of the string buffer.
|
abstract
String
|
toString(Object data)
Returns the string buffer as a String.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
StringBufferImplAppend
()
Public Methods
public
void
append
(Object data, float x)
Append for primitive; the value can be stored and only later converted to a
string.
public
void
append
(Object data, double x)
Append for primitive; the value can be stored and only later converted to a
string.
public
void
append
(Object data, int x)
Append for primitive; the value can be stored and only later converted to a
string.
public
void
append
(Object data, boolean x)
Append for primitive; the value can be stored and only later converted to a
string.
public
void
append
(Object data, Object x)
Append for object. It is important to immediately convert the object to a
string, because the conversion can give different results if it is
deferred.
public
void
append
(Object data, String x)
Append for a possibly null string object.
public
void
appendNonNull
(Object data, String x)
Append for a string that is definitely not null.
public
Object
createData
()
Returns a data holder object for use with subsequent calls.
public
int
length
(Object data)
Returns the current length of the string buffer.
public
void
replace
(Object data, int start, int end, String toInsert)
Replaces a segment of the string buffer.
Returns the string buffer as a String.