public static class CN1String.Builder
extends java.lang.Object
implements java.lang.CharSequence
| Constructor and Description |
|---|
Builder(java.lang.String str) |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index)
Returns the character at the specified index, with the first character
having index zero.
|
int |
length()
Returns the number of characters in this sequence.
|
CN1String.Builder |
replace(java.lang.String needle,
java.lang.String replacement) |
CN1String.Builder |
replaceAll(java.lang.String regex,
java.lang.String replacement) |
java.lang.CharSequence |
subSequence(int start,
int end)
Returns a
CharSequence from the start index (inclusive)
to the end index (exclusive) of this sequence. |
java.lang.String |
toString()
Returns a string representation of the object.
|
public CN1String.Builder replace(java.lang.String needle, java.lang.String replacement)
public CN1String.Builder replaceAll(java.lang.String regex, java.lang.String replacement)
public int length()
java.lang.CharSequencelength in interface java.lang.CharSequencepublic char charAt(int index)
java.lang.CharSequencecharAt in interface java.lang.CharSequenceindex - the index of the character to return.public java.lang.CharSequence subSequence(int start,
int end)
java.lang.CharSequenceCharSequence from the start index (inclusive)
to the end index (exclusive) of this sequence.subSequence in interface java.lang.CharSequencestart - the start offset of the sub-sequence. It is inclusive, that
is, the index of the first character that is included in the
sub-sequence.end - the end offset of the sub-sequence. It is exclusive, that is,
the index of the first character after those that are included
in the sub-sequencepublic java.lang.String toString()
java.lang.ObjecttoString in interface java.lang.CharSequencetoString in class java.lang.Object