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

Method endsWith

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

Source from the content-addressed store, hash-verified

408 }
409
410 public boolean endsWith(String s) {
411 if (length >= s.length) {
412 return substring(length - s.length).compareTo(s) == 0;
413 } else {
414 return false;
415 }
416 }
417
418 public String concat(String s) {
419 if (s.length() == 0) {

Callers 5

classDescMethod · 0.95
toStringMethod · 0.95
findJarMethod · 0.80
stripSeparatorsMethod · 0.80
isDirectoryMethod · 0.80

Calls 2

substringMethod · 0.95
compareToMethod · 0.65

Tested by 1

findJarMethod · 0.64