public abstract class

StringBufferImpl

extends Object
java.lang.Object
   ↳ com.google.gwt.core.client.impl.StringBufferImpl
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

The interface to defer bound implementations of StringBuilder and StringBuffer.

All of the implementations have been carefully tweaked to get the most inlining possible, so be sure to check with com.google.gwt.emultest.java.lang.StringBuilderBenchmark StringBuilderBenchmark whenever these classes are modified.

Summary

Public Constructors
StringBufferImpl()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public StringBufferImpl ()

Public Methods

public abstract void append (Object data, float x)

Append for primitive; the value can be stored and only later converted to a string.

public abstract void append (Object data, double x)

Append for primitive; the value can be stored and only later converted to a string.

public abstract void append (Object data, int x)

Append for primitive; the value can be stored and only later converted to a string.

public abstract void append (Object data, boolean x)

Append for primitive; the value can be stored and only later converted to a string.

public abstract 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 abstract void append (Object data, String x)

Append for a possibly null string object.

public abstract void appendNonNull (Object data, String x)

Append for a string that is definitely not null.

public abstract Object createData ()

Returns a data holder object for use with subsequent calls.

public abstract int length (Object data)

Returns the current length of the string buffer.

public abstract void replace (Object data, int start, int end, String toInsert)

Replaces a segment of the string buffer.

public abstract String toString (Object data)

Returns the string buffer as a String.