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

Method equals

classpath/java/lang/String.java:173–183  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

171 }
172
173 @Override
174 public boolean equals(Object o) {
175 if (this == o) {
176 return true;
177 } else if (o instanceof String) {
178 String s = (String) o;
179 return s.length == length && compareTo(s) == 0;
180 } else {
181 return false;
182 }
183 }
184
185 public boolean equalsIgnoreCase(String s) {
186 if (this == s) {

Callers 4

mainMethod · 0.95
verifyContentsMethod · 0.95
invokeMethod · 0.95
regionMatchesMethod · 0.95

Calls 1

compareToMethod · 0.95

Tested by 2

mainMethod · 0.76
verifyContentsMethod · 0.76