MCPcopy Create free account
hub / github.com/LFYSec/MScan / equals

Method equals

src/main/java/pascal/taie/util/collection/MapEntry.java:66–76  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

64 }
65
66 @Override
67 public boolean equals(Object obj) {
68 if (obj == this) {
69 return true;
70 }
71 if (!(obj instanceof Entry<?, ?> e)) {
72 return false;
73 }
74 return Objects.equals(key, e.getKey()) &&
75 Objects.equals(value, e.getValue());
76 }
77
78 @Override
79 public int hashCode() {

Callers 7

containsMethod · 0.45
removeMethod · 0.45
checkInvariantMethod · 0.45
checkContextMethod · 0.45
containsValueMethod · 0.45
removeMethod · 0.45
getEntryMethod · 0.45

Calls 2

getKeyMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected