MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / equals

Method equals

Java/OverridingEqualsMethod/Abc.java:19–29  ·  view source on GitHub ↗
(Object object)

Source from the content-addressed store, hash-verified

17 }
18
19 @Override
20 public boolean equals(Object object) {
21 if (object == this) {
22 return true;
23 }
24 if (!(object instanceof Abc)) {
25 return false;
26 }
27 Abc abc = (Abc) object;
28 return string.equals(abc.getString()) && value == abc.getValue();
29 }
30
31}

Callers 8

mainMethod · 0.95
mainMethod · 0.80
palinMethod · 0.80
palinMethod · 0.80
equalMethod · 0.80
countMatchesMethod · 0.80
checkPermutationMethod · 0.80
checkMethod · 0.80

Calls 2

getStringMethod · 0.95
getValueMethod · 0.95

Tested by

no test coverage detected