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

66 lines
1.4 KiB
Java
Raw Normal View History

2021-08-03 07:33:18 +00:00
package kotlin;
import c.d.b.a.a;
import d0.z.d.m;
import java.io.Serializable;
/* compiled from: Tuples.kt */
public final class Pair<A, B> implements Serializable {
private final A first;
private final B second;
public Pair(A a, B b) {
this.first = a;
this.second = b;
}
public final A component1() {
return this.first;
}
public final B component2() {
return this.second;
}
@Override // java.lang.Object
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;
}
@Override // java.lang.Object
public int hashCode() {
A a = this.first;
int i = 0;
int hashCode = (a != null ? a.hashCode() : 0) * 31;
B b = this.second;
if (b != null) {
i = b.hashCode();
}
return hashCode + i;
}
@Override // java.lang.Object
public String toString() {
2021-08-28 06:29:07 +00:00
StringBuilder N = a.N('(');
N.append((Object) this.first);
N.append(", ");
N.append((Object) this.second);
N.append(')');
return N.toString();
2021-08-03 07:33:18 +00:00
}
}