MCPcopy
hub / github.com/google/gson / equals

Method equals

src/main/java/com/google/gson/Pair.java:43–51  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

41 }
42
43 @Override
44 public boolean equals(Object o) {
45 if (!(o instanceof Pair<?, ?>)) {
46 return false;
47 }
48
49 Pair<?, ?> that = (Pair<?, ?>) o;
50 return equal(this.first, that.first) && equal(this.second, that.second);
51 }
52
53 private static boolean equal(Object a, Object b) {
54 return a == b || (a != null && a.equals(b));

Callers 6

containsMethod · 0.45
equalMethod · 0.45

Calls 1

equalMethod · 0.95

Tested by

no test coverage detected