discord-jadx/app/src/main/java/kotlin/Pair.java

64 lines
1.4 KiB
Java

package kotlin;
import b.d.b.a.a;
import d0.z.d.m;
import java.io.Serializable;
/* compiled from: Tuples.kt */
/* loaded from: classes3.dex */
public final class Pair<A, B> implements Serializable {
private final A first;
private final B second;
public Pair(A a, B b2) {
this.first = a;
this.second = b2;
}
public final A component1() {
return this.first;
}
public final B component2() {
return this.second;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Pair)) {
return false;
}
Pair pair = (Pair) obj;
return m.areEqual(this.first, pair.first) && m.areEqual(this.second, pair.second);
}
public final A getFirst() {
return this.first;
}
public final B getSecond() {
return this.second;
}
public int hashCode() {
A a = this.first;
int i = 0;
int hashCode = (a != null ? a.hashCode() : 0) * 31;
B b2 = this.second;
if (b2 != null) {
i = b2.hashCode();
}
return hashCode + i;
}
public String toString() {
StringBuilder O = a.O('(');
O.append(this.first);
O.append(", ");
O.append(this.second);
O.append(')');
return O.toString();
}
}