com.google.gwt.core.client.impl
Class StringBufferImplPush

java.lang.Object
  extended by com.google.gwt.core.client.impl.StringBufferImpl
      extended by com.google.gwt.core.client.impl.StringBufferImplArrayBase
          extended by com.google.gwt.core.client.impl.StringBufferImplPush

public class StringBufferImplPush
extends StringBufferImplArrayBase

A 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 Summary
StringBufferImplPush()
           
 
Method Summary
 void append(java.lang.Object a, boolean x)
          Append for primitive; the value can be stored and only later converted to a string.
 void append(java.lang.Object a, double x)
          Append for primitive; the value can be stored and only later converted to a string.
 void append(java.lang.Object a, float x)
          Append for primitive; the value can be stored and only later converted to a string.
 void append(java.lang.Object a, int x)
          Append for primitive; the value can be stored and only later converted to a string.
 void appendNonNull(java.lang.Object a, java.lang.String x)
          Append for a string that is definitely not null.
 
Methods inherited from class com.google.gwt.core.client.impl.StringBufferImplArrayBase
append, append, createData, length, replace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBufferImplPush

public StringBufferImplPush()
Method Detail

append

public void append(java.lang.Object a,
                   boolean x)
Description copied from class: StringBufferImpl
Append for primitive; the value can be stored and only later converted to a string.

Overrides:
append in class StringBufferImplArrayBase

append

public void append(java.lang.Object a,
                   double x)
Description copied from class: StringBufferImpl
Append for primitive; the value can be stored and only later converted to a string.

Overrides:
append in class StringBufferImplArrayBase

append

public void append(java.lang.Object a,
                   float x)
Description copied from class: StringBufferImpl
Append for primitive; the value can be stored and only later converted to a string.

Overrides:
append in class StringBufferImplArrayBase

append

public void append(java.lang.Object a,
                   int x)
Description copied from class: StringBufferImpl
Append for primitive; the value can be stored and only later converted to a string.

Overrides:
append in class StringBufferImplArrayBase

appendNonNull

public void appendNonNull(java.lang.Object a,
                          java.lang.String x)
Description copied from class: StringBufferImpl
Append for a string that is definitely not null.

Overrides:
appendNonNull in class StringBufferImplArrayBase