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

72 lines
1.7 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 Triple<A, B, C> implements Serializable {
private final A first;
private final B second;
private final C third;
public Triple(A a, B b, C c2) {
this.first = a;
this.second = b;
this.third = c2;
}
public final A component1() {
return this.first;
}
public final B component2() {
return this.second;
}
public final C component3() {
return this.third;
}
@Override // java.lang.Object
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Triple)) {
return false;
}
Triple triple = (Triple) obj;
return m.areEqual(this.first, triple.first) && m.areEqual(this.second, triple.second) && m.areEqual(this.third, triple.third);
}
public final C getThird() {
return this.third;
}
@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;
int hashCode2 = (hashCode + (b != null ? b.hashCode() : 0)) * 31;
C c2 = this.third;
if (c2 != null) {
i = c2.hashCode();
}
return hashCode2 + i;
}
@Override // java.lang.Object
public String toString() {
2021-08-25 07:02:36 +00:00
StringBuilder L = a.L('(');
L.append((Object) this.first);
L.append(", ");
L.append((Object) this.second);
L.append(", ");
L.append((Object) this.third);
L.append(')');
return L.toString();
2021-08-03 07:33:18 +00:00
}
}