public class StringBuilderImpl extends Object
An implementation for a StringBuilder
or StringBuffer
. This
class holds a default implementation based on an array of strings and the
JavaScript join function. Deferred bindings can substitute a subclass
optimized for a particular browser.
The main implementations are static classes nested within this one. All of the implementations have been carefully tweaked to get the most inlining possible, so be sure to check with benchmark whenever these classes are modified.
Modifier and Type | Class and Description |
---|---|
static class |
StringBuilderImpl.ImplArray
A
StringBuilderImpl that uses an array and an explicit length for
appending strings. |
static class |
StringBuilderImpl.ImplPush
A
StringBuilderImpl that uses push for appending
strings. |
static class |
StringBuilderImpl.ImplStringAppend
A
StringBuilderImpl that uses += for appending strings. |
Constructor and Description |
---|
StringBuilderImpl() |
Copyright © 2018. All rights reserved.