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

Method startsWith

classpath/java/lang/String.java:394–400  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

392 }
393
394 public boolean startsWith(String s) {
395 if (length >= s.length) {
396 return substring(0, s.length).compareTo(s) == 0;
397 } else {
398 return false;
399 }
400 }
401
402 public boolean startsWith(String s, int start) {
403 if (length >= s.length + start) {

Callers 15

getMethod · 0.95
setMethod · 0.95
classDescMethod · 0.95
toStringMethod · 0.95
toStringMethod · 0.95
forCanonicalNameMethod · 0.80
countMethodsMethod · 0.80
getMethodsMethod · 0.80
decodeMethod · 0.80
getDeclaredMethodMethod · 0.80
getMethodMethod · 0.80
getResourceMethod · 0.80

Calls 2

substringMethod · 0.95
compareToMethod · 0.65

Tested by

no test coverage detected