MCPcopy Create free account
hub / github.com/ReadyTalk/avian / charAt

Method charAt

classpath/java/lang/String.java:501–512  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

499 }
500
501 @Override
502 public char charAt(int index) {
503 if (index < 0 || index > length) {
504 throw new StringIndexOutOfBoundsException(index);
505 }
506
507 if (data instanceof char[]) {
508 return ((char[]) data)[index + offset];
509 } else {
510 return (char) ((byte[]) data)[index + offset];
511 }
512 }
513
514 public String[] split(String regex) {
515 return split(regex, 0);

Callers 12

getParameterTypesMethod · 0.95
hashCodeMethod · 0.95
compareToMethod · 0.95
compareToIgnoreCaseMethod · 0.95
trimMethod · 0.95
toLowerCaseMethod · 0.95
toUpperCaseMethod · 0.95
indexOfMethod · 0.95
lastIndexOfMethod · 0.95
replaceMethod · 0.95
getMethod · 0.95
setMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected