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