public class

StringBufferImplAppend

extends StringBufferImpl
java.lang.Object
   ↳ com.google.gwt.core.client.impl.StringBufferImpl
     ↳ com.google.gwt.core.client.impl.StringBufferImplAppend

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 Constructors
StringBufferImplAppend()
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
From class java.lang.Object

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.

public String toString (Object data)

Returns the string buffer as a String.