public final class DeferredStringBuilder extends Object implements Appendable, CharSequence
| Constructor and Description |
|---|
DeferredStringBuilder(CharSequence source) |
| Modifier and Type | Method and Description |
|---|---|
DeferredStringBuilder |
append(char c) |
DeferredStringBuilder |
append(CharSequence csq) |
DeferredStringBuilder |
append(CharSequence csq,
int start,
int end) |
void |
appendAsDifferent(char c) |
void |
appendAsDifferent(CharSequence csq)
Call this if the first character of the sequence may be the same as the given sequence.
|
void |
appendQuicklyForEscapingWithoutSkips(char c)
Append the given char, under the condition that the character is directly copied from the
parent.
|
void |
appendQuicklyForEscapingWithoutSkips(int c)
Version of appendQuicklyForEscapingWithoutSkips that avoids a downcast in most cases.
|
char |
charAt(int index) |
int |
length() |
CharSequence |
subSequence(int start,
int end) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchars, codePointspublic DeferredStringBuilder(CharSequence source)
public DeferredStringBuilder append(char c)
append in interface Appendablepublic void appendQuicklyForEscapingWithoutSkips(char c)
c - the character you're trying to add that came from the and your currently skippingpublic void appendQuicklyForEscapingWithoutSkips(int c)
c - public DeferredStringBuilder append(CharSequence csq)
append in interface Appendablepublic void appendAsDifferent(CharSequence csq)
public void appendAsDifferent(char c)
public DeferredStringBuilder append(CharSequence csq, int start, int end)
append in interface Appendablepublic char charAt(int index)
charAt in interface CharSequencepublic CharSequence subSequence(int start, int end)
subSequence in interface CharSequencepublic String toString()
toString in interface CharSequencetoString in class Objectpublic int length()
length in interface CharSequenceCopyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the repository.