- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
40 lines
947 B
Java
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);
|
|
}
|
|
}
|