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 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() { StringBuilder J = a.J('('); J.append((Object) this.first); J.append(", "); J.append((Object) this.second); J.append(')'); return J.toString(); } }