Returns the character at the specified offset in this string. @param index the zero-based index in this string. @return the character at the index. @throws IndexOutOfBoundsException if index < 0 or index >= length().
(int index)
| 540 | * if {@code index < 0} or {@code index >= length()}. |
| 541 | */ |
| 542 | public char charAt(int index) { |
| 543 | if (0 <= index && index < count) { |
| 544 | return value[offset + index]; |
| 545 | } |
| 546 | throw new StringIndexOutOfBoundsException(); |
| 547 | } |
| 548 | |
| 549 | // Optimized for ASCII |
| 550 | private char compareValue(char ch) { |
no outgoing calls
no test coverage detected