package j;

import java.io.Serializable;

/* JADX INFO: compiled from: Tuples.kt */
/* JADX INFO: loaded from: classes.dex */
public final class p<A, B> implements Serializable {
    private final A b;
    private final B d;

    public p(A a, B b) {
        this.b = a;
        this.d = b;
    }

    public final A a() {
        return this.b;
    }

    public final B b() {
        return this.d;
    }

    public final A c() {
        return this.b;
    }

    public final B d() {
        return this.d;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof p)) {
            return false;
        }
        p pVar = (p) obj;
        return j.p0.d.r.a(this.b, pVar.b) && j.p0.d.r.a(this.d, pVar.d);
    }

    public int hashCode() {
        A a = this.b;
        int iHashCode = (a == null ? 0 : a.hashCode()) * 31;
        B b = this.d;
        return iHashCode + (b != null ? b.hashCode() : 0);
    }

    public String toString() {
        return '(' + this.b + ", " + this.d + ')';
    }
}
