Method Summary |
|
public char[] | array() Returns the underlying array (read-only). |
public char | charAt(int index) Returns the character at the specified index.
Parameters: index - the index of the character starting at 0 . |
public int | compareTo(Object seq) Compares this character array with the specified character
sequence lexicographically.
Parameters: seq - the character sequence to be compared. |
public boolean | equals(Object that) Compares this character sequence against the specified object
(String or CharSequence ).
Parameters: that - the object to compare with. |
public boolean | equals(CharArray that) Compares this character array against the specified
CharArray .
Parameters: that - the character array to compare with. |
public boolean | equals(String str) Compares this character array against the specified String.
In case of equality, the CharArray keeps a reference to the
String for future comparisons.
Parameters: str - the string to compare with. |
public int | hashCode() Returns the hash code for this
CharArray . |
public int | length() Returns the length of this character sequence. |
public int | offset() Returns the offset of the first character in the underlying array. |
final public int | offsetOf(CharSequence csq) Returns the offset within this character array of the first occurrence
of the specified characters sequence searching forward from this
character array
CharArray.offset() to offset() + length() .
Parameters: csq - a character sequence searched for. |
final public int | offsetOf(char c) Returns the offset within this character array of the first occurrence
of the specified character searching forward from this
character array
CharArray.offset() to offset() + length() .
Parameters: c - the character to search for. |
public CharArray | setArray(char[] array, int offset, int length) Sets the underlying array of this CharArray.
Parameters: offset - the new offset. Parameters: array - the new underlying array. Parameters: length - the new length. |
public CharSequence | subSequence(int start, int end) Returns a new character sequence that is a subsequence of this sequence.
Parameters: start - the index of the first character inclusive. Parameters: end - the index of the last character exclusive. |
public boolean | toBoolean() Returns the boolean represented by this character array. |
public int | toInt() Returns the decimal int represented by this character array. |
public int | toInt(int radix) Returns the int represented by this character array
in the specified radix.
Parameters: radix - the radix (e.g. |
public long | toLong() Returns the decimal long represented by this character
array. |
public long | toLong(int radix) Returns the decimal long represented by this character
array in the specified radix.
Parameters: radix - the radix (e.g. |
public String | toString() Returns the String corresponding to this character
sequence. |