MCPcopy Create free account
hub / github.com/OneUIProject/oneui-core / equals

Method equals

core/src/main/java/androidx/core/util/Pair.java:50–57  ·  view source on GitHub ↗

Checks the two objects for equality by delegating to their respective Object#equals(Object) methods. @param o the Pair to which this one is to be checked for equality @return true if the underlying objects of the Pair are both considered equal

(Object o)

Source from the content-addressed store, hash-verified

48 * equal
49 */
50 @Override
51 public boolean equals(Object o) {
52 if (!(o instanceof Pair)) {
53 return false;
54 }
55 Pair<?, ?> p = (Pair<?, ?>) o;
56 return ObjectsCompat.equals(p.first, first) && ObjectsCompat.equals(p.second, second);
57 }
58
59 /**
60 * Compute a hash code using the hash codes of the underlying objects

Callers 15

createNodeForChildMethod · 0.45
isSupportedActivityMethod · 0.45
onActivityCreateMethod · 0.45
onBindMethod · 0.45
checkPermissionMethod · 0.45
updateListenerMapMethod · 0.45
isShareIntentMethod · 0.45
isSingleShareMethod · 0.45

Calls 1

equalsMethod · 0.95

Tested by

no test coverage detected