Package | Description |
---|---|
java.io | |
java.lang |
Modifier and Type | Method and Description |
---|---|
Writer |
Writer.append(CharSequence csq)
Appends the specified character sequence to this writer.
|
PrintStream |
PrintStream.append(CharSequence csq)
Appends the specified character sequence to this output stream.
|
Writer |
Writer.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this writer.
|
PrintStream |
PrintStream.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this output stream.
|
Modifier and Type | Class and Description |
---|---|
class |
String |
class |
StringBuffer
A thread-safe, mutable sequence of characters.
|
class |
StringBuilder
A mutable sequence of characters.
|
Modifier and Type | Method and Description |
---|---|
CharSequence |
StringBuilder.subSequence(int start,
int end)
Returns a new character sequence that is a subsequence of this sequence.
|
CharSequence |
StringBuffer.subSequence(int start,
int end)
Returns a new character sequence that is a subsequence of this sequence.
|
CharSequence |
String.subSequence(int beginIndex,
int endIndex)
Returns a new character sequence that is a subsequence of this sequence.
|
CharSequence |
CharSequence.subSequence(int start,
int end)
Returns a new
CharSequence that is a subsequence of this sequence. |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
StringBuilder.append(CharSequence csq)
Appends the specified character sequence to this Appendable.
|
StringBuffer |
StringBuffer.append(CharSequence s)
Appends the specified
CharSequence to this sequence. |
Appendable |
Appendable.append(CharSequence csq)
Appends the specified character sequence to this Appendable.
|
StringBuilder |
StringBuilder.append(CharSequence s,
int start,
int end)
Appends a subsequence of the specified
CharSequence to this sequence. |
StringBuffer |
StringBuffer.append(CharSequence s,
int start,
int end)
Appends a subsequence of the specified
CharSequence to this sequence. |
Appendable |
Appendable.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this Appendable.
|
boolean |
String.contains(CharSequence s)
Returns true if and only if this string contains the specified sequence of char values.
|
boolean |
String.contentEquals(CharSequence cs)
Compares this string to the specified
CharSequence . |
StringBuilder |
StringBuilder.insert(int dstOffset,
CharSequence s)
Inserts the specified
CharSequence into this sequence. |
StringBuffer |
StringBuffer.insert(int dstOffset,
CharSequence s)
Inserts the specified
CharSequence into this sequence. |
StringBuilder |
StringBuilder.insert(int dstOffset,
CharSequence s,
int start,
int end)
Inserts a subsequence of the specified
CharSequence into this sequence. |
StringBuffer |
StringBuffer.insert(int dstOffset,
CharSequence s,
int start,
int end)
Inserts a subsequence of the specified
CharSequence into this sequence. |
String |
String.replace(CharSequence target,
CharSequence replacement)
Replaces each substring of this string that matches the literal target sequence with the
specified literal replacement sequence.
|
Constructor and Description |
---|
StringBuffer(CharSequence seq)
Constructs a string buffer that contains the same characters as the specified
CharSequence . |
StringBuilder(CharSequence seq)
Constructs a string builder that contains the same characters as the specified
CharSequence . |