public abstract class StringBufferImplArrayBase extends StringBufferImpl
Constructor and Description |
---|
StringBufferImplArrayBase() |
Modifier and Type | Method and Description |
---|---|
void |
append(Object a,
boolean x)
Append for primitive; the value can be stored and only later converted to a string.
|
void |
append(Object a,
double x)
Append for primitive; the value can be stored and only later converted to a
string.
|
void |
append(Object a,
float x)
Append for primitive; the value can be stored and only later converted to a
string.
|
void |
append(Object a,
int x)
Append for primitive; the value can be stored and only later converted to a
string.
|
void |
append(Object a,
Object x)
Append for object.
|
void |
append(Object a,
String x)
Append for a possibly null string object.
|
void |
appendNonNull(Object a,
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 a)
Returns the current length of the string buffer.
|
void |
replace(Object a,
int start,
int end,
String toInsert)
Replaces a segment of the string buffer.
|
void |
reverse(Object a)
Reverses the whole StringBuffer/Builder
|
protected String |
takeString(Object a) |
String |
toString(Object a)
Returns the string buffer as a String.
|
reverseString
public void append(Object a, boolean x)
StringBufferImpl
append
in class StringBufferImpl
public void append(Object a, double x)
StringBufferImpl
append
in class StringBufferImpl
public void append(Object a, float x)
StringBufferImpl
append
in class StringBufferImpl
public void append(Object a, int x)
StringBufferImpl
append
in class StringBufferImpl
public final void append(Object a, Object x)
StringBufferImpl
append
in class StringBufferImpl
public void append(Object a, String x)
StringBufferImpl
append
in class StringBufferImpl
public void appendNonNull(Object a, String x)
StringBufferImpl
appendNonNull
in class StringBufferImpl
public final Object createData()
StringBufferImpl
createData
in class StringBufferImpl
public int length(Object a)
StringBufferImpl
length
in class StringBufferImpl
public final void replace(Object a, int start, int end, String toInsert)
StringBufferImpl
replace
in class StringBufferImpl
public void reverse(Object a)
StringBufferImpl
reverse
in class StringBufferImpl
public final String toString(Object a)
StringBufferImpl
toString
in class StringBufferImpl
Copyright © 2018. All rights reserved.