package V4;

import java.util.concurrent.ScheduledFuture;

/* JADX INFO: renamed from: V4.j, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes3.dex */
public final class C0766j implements InterfaceC0768k {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f8307a;

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

    public /* synthetic */ C0766j(Object obj, int i6) {
        this.f8307a = i6;
        this.f8308b = obj;
    }

    @Override // V4.InterfaceC0768k
    public final void a(Throwable th) {
        switch (this.f8307a) {
            case 0:
                ((ScheduledFuture) this.f8308b).cancel(false);
                break;
            case 1:
                ((J4.c) this.f8308b).invoke(th);
                break;
            default:
                ((P) this.f8308b).dispose();
                break;
        }
    }

    public final String toString() {
        switch (this.f8307a) {
            case 0:
                return "CancelFutureOnCancel[" + ((ScheduledFuture) this.f8308b) + ']';
            case 1:
                return "CancelHandler.UserSupplied[" + ((J4.c) this.f8308b).getClass().getSimpleName() + '@' + E.p(this) + ']';
            default:
                return "DisposeOnCancel[" + ((P) this.f8308b) + ']';
        }
    }
}
