forked from Juby210/discord-jadx
72 lines
1.7 KiB
Java
72 lines
1.7 KiB
Java
|
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() {
|
||
|
StringBuilder J = a.J('(');
|
||
|
J.append((Object) this.first);
|
||
|
J.append(", ");
|
||
|
J.append((Object) this.second);
|
||
|
J.append(", ");
|
||
|
J.append((Object) this.third);
|
||
|
J.append(')');
|
||
|
return J.toString();
|
||
|
}
|
||
|
}
|