MCPcopy Create free account
hub / github.com/dianping/cat / equals

Method equals

lib/java/src/main/java/com/dianping/cat/util/Pair.java:34–64  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

32 }
33
34 @Override
35 @SuppressWarnings("unchecked")
36 public boolean equals(Object obj) {
37 if (this == obj) {
38 return true;
39 }
40
41 if (obj instanceof Pair) {
42 Pair<Object, Object> o = (Pair<Object, Object>) obj;
43
44 if (key == null) {
45 if (o.key != null) {
46 return false;
47 }
48 } else if (!key.equals(o.key)) {
49 return false;
50 }
51
52 if (value == null) {
53 if (o.value != null) {
54 return false;
55 }
56 } else if (!value.equals(o.value)) {
57 return false;
58 }
59
60 return true;
61 }
62
63 return false;
64 }
65
66 @Override
67 @SuppressWarnings("unchecked")

Callers 15

preProcessMethod · 0.45
getAppTypeMethod · 0.45
isNullOrEmptyMethod · 0.45
beginLogMethod · 0.45
invokeMethod · 0.45
initContextMethod · 0.45
appendProviderAppNameMethod · 0.45
setTraceModeMethod · 0.45
invokeMethod · 0.45
initContextMethod · 0.45
appendProviderAppNameMethod · 0.45
validateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected