Files
rr3-apk/decompiled/sources/androidx/core/util/Pair.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

40 lines
947 B
Java

package androidx.core.util;
import androidx.annotation.NonNull;
/* loaded from: classes.dex */
public class Pair<F, S> {
public final F first;
public final S second;
public Pair(F f, S s) {
this.first = f;
this.second = s;
}
public boolean equals(Object obj) {
if (!(obj instanceof Pair)) {
return false;
}
Pair pair = (Pair) obj;
return ObjectsCompat.equals(pair.first, this.first) && ObjectsCompat.equals(pair.second, this.second);
}
public int hashCode() {
F f = this.first;
int hashCode = f == null ? 0 : f.hashCode();
S s = this.second;
return hashCode ^ (s != null ? s.hashCode() : 0);
}
@NonNull
public String toString() {
return "Pair{" + this.first + " " + this.second + "}";
}
@NonNull
public static <A, B> Pair<A, B> create(A a, B b) {
return new Pair<>(a, b);
}
}