package Y4;

import n2.AbstractC2612c;
import x4.AbstractC3251q;
import y4.C3274b;

/* JADX INFO: loaded from: classes3.dex */
public final class Z implements T {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final long f8913a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final long f8914b;

    public Z(long j4, long j6) {
        this.f8913a = j4;
        this.f8914b = j6;
        if (j4 < 0) {
            throw new IllegalArgumentException(("stopTimeout(" + j4 + " ms) cannot be negative").toString());
        }
        if (j6 >= 0) {
            return;
        }
        throw new IllegalArgumentException(("replayExpiration(" + j6 + " ms) cannot be negative").toString());
    }

    @Override // Y4.T
    public final InterfaceC0843i a(Z4.C c6) {
        X x6 = new X(this, null);
        int i6 = AbstractC0857x.f8999a;
        return O.j(new C0851q(new Z4.n(x6, c6, A4.k.f106a, -2, X4.a.f8640a), new Y(2, null)));
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof Z)) {
            return false;
        }
        Z z6 = (Z) obj;
        return this.f8913a == z6.f8913a && this.f8914b == z6.f8914b;
    }

    public final int hashCode() {
        return Long.hashCode(this.f8914b) + (Long.hashCode(this.f8913a) * 31);
    }

    public final String toString() {
        C3274b c3274b = new C3274b(2);
        long j4 = this.f8913a;
        if (j4 > 0) {
            c3274b.add("stopTimeout=" + j4 + "ms");
        }
        long j6 = this.f8914b;
        if (j6 < Long.MAX_VALUE) {
            c3274b.add("replayExpiration=" + j6 + "ms");
        }
        return Z0.o.r(new StringBuilder("SharingStarted.WhileSubscribed("), AbstractC3251q.m0(AbstractC2612c.e(c3274b), null, null, null, null, 63), ')');
    }
}
