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.CharSequence
length
in interface java.lang.CharSequence
public char charAt(int index)
java.lang.CharSequence
charAt
in interface java.lang.CharSequence
index
- the index of the character to return.public java.lang.CharSequence subSequence(int start, int end)
java.lang.CharSequence
CharSequence
from the start
index (inclusive)
to the end
index (exclusive) of this sequence.subSequence
in interface java.lang.CharSequence
start
- 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.Object
toString
in interface java.lang.CharSequence
toString
in class java.lang.Object