69 lines
1.6 KiB
Java
69 lines
1.6 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 Triple<A, B, C> implements Serializable {
|
|
private final A first;
|
|
private final B second;
|
|
private final C third;
|
|
|
|
public Triple(A a, B b2, C c) {
|
|
this.first = a;
|
|
this.second = b2;
|
|
this.third = c;
|
|
}
|
|
|
|
public final A component1() {
|
|
return this.first;
|
|
}
|
|
|
|
public final B component2() {
|
|
return this.second;
|
|
}
|
|
|
|
public final C component3() {
|
|
return this.third;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
public int hashCode() {
|
|
A a = this.first;
|
|
int i = 0;
|
|
int hashCode = (a != null ? a.hashCode() : 0) * 31;
|
|
B b2 = this.second;
|
|
int hashCode2 = (hashCode + (b2 != null ? b2.hashCode() : 0)) * 31;
|
|
C c = this.third;
|
|
if (c != null) {
|
|
i = c.hashCode();
|
|
}
|
|
return hashCode2 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder O = a.O('(');
|
|
O.append(this.first);
|
|
O.append(", ");
|
|
O.append(this.second);
|
|
O.append(", ");
|
|
O.append(this.third);
|
|
O.append(')');
|
|
return O.toString();
|
|
}
|
|
}
|