Package Summary Overview Summary

### method:length() [CHANGED]
### length public int length() Description copied from interface: `CharSequence` Returns the length of this(character sequence. The length is the number of 16-bit `char` s in the sequencecount). Specified by: `length` in interface `CharSequence` Returns: the length of the numbersequence of `char` s incharacters currently represented by this sequenceobject
### length public int length() Description copied from interface: `CharSequence` Returns the length of this character sequence. The length is the number of 16-bit `char`s in the sequence. Specified by: `length` in interface `CharSequence` Returns: the number of `char`s in this sequence | ### length public int length() Returns the length (character count). Specified by: `length` in interface `CharSequence` Returns: the length of the sequence of characters currently represented by this object

### method:charAt(int) [CHANGED]
### charAt public char charAt (int index) Description copied from interface: `CharSequence` Returns the `char` value in this sequence at the specified index. An index ranges from zero to `length() - 1` .The first `char` value of the sequenceis at index `zero0` , the next at index `one1` , and so on, as forin array indexing. The index argument must be greater than or equal to `0`, and less than the length of this sequence. If the `char` value specified by the index is a surrogate, the surrogate value is returned. Specified by: `charAt` in interface `CharSequence` Parameters: `index` - the index of the desired `char` value to be returned. Returns: the `specifiedchar` value at the specified index. Throws: `IndexOutOfBoundsException` - if `theindex` argumentis negative or not lessgreater than or equal to `length()`. See Also: `length()`
### charAt public char charAt (int index) Description copied from interface: `CharSequence` Returns the `char` value at the specified index. An index ranges from zero to `length() - 1` . The first `char` value of the sequence is at index zero, the next at index one, and so on, as for array indexing. If the `char` value specified by the index is a surrogate, the surrogate value is returned. Specified by: `charAt` in interface `CharSequence` Parameters: `index` - the index of the `char` value to be returned Returns: the specified `char` value Throws: `IndexOutOfBoundsException` - if the `index` argument is negative or not less than `length()` See Also: `length()` | ### charAt public char charAt (int index) Returns the `char` value in this sequence at the specified index. The first `char` value is at index `0`, the next at index `1`, and so on, as in array indexing. The index argument must be greater than or equal to `0`, and less than the length of this sequence. If the `char` value specified by the index is a surrogate, the surrogate value is returned. Specified by: `charAt` in interface `CharSequence` Parameters: `index` - the index of the desired `char` value. Returns: the `char` value at the specified index. Throws: `IndexOutOfBoundsException` - if `index` is negative or greater than or equal to `length()`. See Also: `length()`

### method:append(java.lang.CharSequence,int,int) [CHANGED]
### append public StringBuffer append (CharSequence s, int start, int end) Description copied from interface: `Appendable` Appends a subsequence of the specified `characterCharSequence` to this sequence. Characters of the argument `s`, starting at index `start`, are appended, in order, to the contents of this sequence up to the (exclusive) index `end`. The length of this `Appendable`. An invocationsequence is increased by the value of `end - start` . Let n be the length of this methodcharacter sequence just prior to execution of the `formout.append(csq,` method. Then the character at index k in this character sequence becomes equal to the character at index k in this sequence, if k is less than n; otherwise, it is equal to the character at index k+start, end) when `csq`-n in the argument `s`. If `s` is `notnull` , behaves in exactlythen this method appends characters as if the same way ass parameter was a sequence containing the invocation
         out.append(csq.subSequence(start, end))
four characters `"null"`. Specified by: `append` in interface `Appendable` Parameters: `s` - The characterthe sequence from which a subsequence will be appended. If `csq` is `null`, then characters will be appended as if `csq` contained the four characters `"null"`to append. `start` - Thethe starting index of the first character inthe subsequence to be appended. `end` - Thethe end index of the character following the last character inthe subsequence to be appended. Returns: Aa reference to this `Appendable` object. Throws: `IndexOutOfBoundsException` - Ifif `start` or `end` areis negative, or `start` is greater than `end` ,or `end` is greater than `csqs.length()` Since: 1.5
### append public StringBuffer append (CharSequence s, int start, int end) Description copied from interface: `Appendable` Appends a subsequence of the specified character sequence to this `Appendable`. An invocation of this method of the form `out.append(csq, start, end)` when `csq` is not `null`, behaves in exactly the same way as the invocation
         out.append(csq.subSequence(start, end))
Specified by: `append` in interface `Appendable` Parameters: `s` - The character sequence from which a subsequence will be appended. If `csq` is `null`, then characters will be appended as if `csq` contained the four characters `"null"`. `start` - The index of the first character in the subsequence `end` - The index of the character following the last character in the subsequence Returns: A reference to this `Appendable` Throws: `IndexOutOfBoundsException` - If `start` or `end` are negative, `start` is greater than `end`, or `end` is greater than `csq.length()` Since: 1.5 | ### append public StringBuffer append (CharSequence s, int start, int end) Appends a subsequence of the specified `CharSequence` to this sequence. Characters of the argument `s`, starting at index `start`, are appended, in order, to the contents of this sequence up to the (exclusive) index `end`. The length of this sequence is increased by the value of `end - start` . Let n be the length of this character sequence just prior to execution of the `append` method. Then the character at index k in this character sequence becomes equal to the character at index k in this sequence, if k is less than n; otherwise, it is equal to the character at index k+start-n in the argument `s`. If `s` is `null`, then this method appends characters as if the s parameter was a sequence containing the four characters `"null"`. Specified by: `append` in interface `Appendable` Parameters: `s` - the sequence to append. `start` - the starting index of the subsequence to be appended. `end` - the end index of the subsequence to be appended. Returns: a reference to this object. Throws: `IndexOutOfBoundsException` - if `start` is negative, or `start` is greater than `end` or `end` is greater than `s.length()` Since: 1.5

### method:append(char) [CHANGED]
### append public StringBuffer append (char c) Description copied from interface: `Appendable` Appends the string representation of the `char` argument to this sequence. The argument is appended to the contents of this sequence. The length of this sequence increases by `1`. The overall effect is exactly as if the argument were converted to a string by the specifiedmethod `String.valueOf(char)`, and the character in that string were then `appended` to this `Appendable` character sequence. Specified by: `append` in interface `Appendable` Parameters: `c` - The character to appenda `char`. Returns: Aa reference to this `Appendable` object.
### append public StringBuffer append (char c) Description copied from interface: `Appendable` Appends the specified character to this `Appendable`. Specified by: `append` in interface `Appendable` Parameters: `c` - The character to append Returns: A reference to this `Appendable` | ### append public StringBuffer append (char c) Appends the string representation of the `char` argument to this sequence. The argument is appended to the contents of this sequence. The length of this sequence increases by `1`. The overall effect is exactly as if the argument were converted to a string by the method `String.valueOf(char)`, and the character in that string were then `appended` to this character sequence. Specified by: `append` in interface `Appendable` Parameters: `c` - a `char`. Returns: a reference to this object.

### method:subSequence(int,int) [CHANGED]
### subSequence public CharSequence subSequence (int start, int end) Description copied from interface: `CharSequence` Returns a `CharSequence` new character sequence that is a subsequence of this sequence. The subsequence starts withAn invocation of this method of the `char` value atform
     sb.subSequence(begin, end)
behaves in exactly the specified index and ends withsame way as the `char` value at indexinvocation
     sb.substring(begin, end-1.Thelength(inchars)ofthereturnedsequence)
This method is `end - start` ,provided so if `start == end` then an empty sequence is returnedthat this class can implement the `CharSequence` interface. Specified by: `subSequence` in interface `CharSequence` Parameters: `start` - the start index, inclusive. `end` - the end index, exclusive. Returns: the specified subsequence. Throws: `IndexOutOfBoundsException` - if `start` or `end` are negative, if `end` is greater than `length()`, or if `start` is greater than `end` Since: 1.4
### subSequence public CharSequence subSequence (int start, int end) Description copied from interface: `CharSequence` Returns a `CharSequence` that is a subsequence of this sequence. The subsequence starts with the `char` value at the specified index and ends with the `char` value at index `end - 1` . The length (in `char`s) of the returned sequence is `end - start` , so if `start == end` then an empty sequence is returned. Specified by: `subSequence` in interface `CharSequence` Parameters: `start` - the start index, inclusive `end` - the end index, exclusive Returns: the specified subsequence Throws: `IndexOutOfBoundsException` - if `start` or `end` are negative, if `end` is greater than `length()`, or if `start` is greater than `end` Since: 1.4 | ### subSequence public CharSequence subSequence (int start, int end) Returns a new character sequence that is a subsequence of this sequence. An invocation of this method of the form
     sb.subSequence(begin, end)
behaves in exactly the same way as the invocation
     sb.substring(begin, end)
This method is provided so that this class can implement the `CharSequence` interface. Specified by: `subSequence` in interface `CharSequence` Parameters: `start` - the start index, inclusive. `end` - the end index, exclusive. Returns: the specified subsequence. Throws: `IndexOutOfBoundsException` - if `start` or `end` are negative, if `end` is greater than `length()`, or if `start` is greater than `end` Since: 1.4

### method:toString() [CHANGED]
### toString public String toString() Description copied from interface: `CharSequence` Returns a string containingrepresenting the charactersdata in this sequence in. A new `String` object is allocated and initialized to contain the same order ascharacter sequence currently represented by this object. This `String` is then returned. Subsequent changes to this sequence . The lengthdo not affect the contents of the `string will be the length of this sequenceString` . Specified by: `toString` in interface `CharSequence` Returns: a string consistingrepresentation of exactlythis sequence of characters.
### toString public String toString() Description copied from interface: `CharSequence` Returns a string containing the characters in this sequence in the same order as this sequence. The length of the string will be the length of this sequence. Specified by: `toString` in interface `CharSequence` Returns: a string consisting of exactly this sequence of characters | ### toString public String toString() Returns a string representing the data in this sequence. A new `String` object is allocated and initialized to contain the character sequence currently represented by this object. This `String` is then returned. Subsequent changes to this sequence do not affect the contents of the `String`. Specified by: `toString` in interface `CharSequence` Returns: a string representation of this sequence of characters.