package ya;

import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;

/* JADX INFO: loaded from: classes2.dex */
public final /* synthetic */ class b implements g {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ f f36907b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ Runnable f36908c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ long f36909d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ long f36910e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ TimeUnit f36911f;

    public /* synthetic */ b(f fVar, Runnable runnable, long j10, long j11, TimeUnit timeUnit, int i10) {
        this.f36906a = i10;
        this.f36907b = fVar;
        this.f36908c = runnable;
        this.f36909d = j10;
        this.f36910e = j11;
        this.f36911f = timeUnit;
    }

    @Override // ya.g
    public final ScheduledFuture a(nb.c cVar) {
        int i10 = this.f36906a;
        Runnable runnable = this.f36908c;
        f fVar = this.f36907b;
        switch (i10) {
            case 0:
                return fVar.f36924b.scheduleWithFixedDelay(new c(fVar, runnable, cVar, 1), this.f36909d, this.f36910e, this.f36911f);
            default:
                return fVar.f36924b.scheduleAtFixedRate(new c(fVar, runnable, cVar, 0), this.f36909d, this.f36910e, this.f36911f);
        }
    }
}
