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

64 lines
1.4 KiB
Java
Raw Normal View History

2021-08-03 07:33:18 +00:00
package kotlin;
2021-12-17 21:59:34 +00:00
import b.d.b.a.a;
2021-11-02 06:38:17 +00:00
import d0.z.d.m;
2021-08-03 07:33:18 +00:00
import java.io.Serializable;
/* compiled from: Tuples.kt */
2022-03-07 09:34:54 +00:00
/* loaded from: classes3.dex */
2021-08-03 07:33:18 +00:00
public final class Pair<A, B> implements Serializable {
private final A first;
private final B second;
2021-12-17 21:59:34 +00:00
public Pair(A a, B b2) {
2021-08-03 07:33:18 +00:00
this.first = a;
2021-12-17 21:59:34 +00:00
this.second = b2;
2021-08-03 07:33:18 +00:00
}
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;
2021-12-17 21:59:34 +00:00
B b2 = this.second;
if (b2 != null) {
i = b2.hashCode();
2021-08-03 07:33:18 +00:00
}
return hashCode + i;
}
public String toString() {
2022-03-21 18:52:30 +00:00
StringBuilder O = a.O('(');
O.append(this.first);
O.append(", ");
O.append(this.second);
O.append(')');
return O.toString();
2021-08-03 07:33:18 +00:00
}
}