package defpackage;

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

/* JADX INFO: loaded from: classes2.dex */
public final /* synthetic */ class b42 implements g42.b {
    public final /* synthetic */ int a;
    public final /* synthetic */ e42 b;
    public final /* synthetic */ Runnable c;
    public final /* synthetic */ long d;
    public final /* synthetic */ long e;
    public final /* synthetic */ TimeUnit f;

    public /* synthetic */ b42(e42 e42Var, Runnable runnable, long j, long j2, TimeUnit timeUnit, int i) {
        this.a = i;
        this.b = e42Var;
        this.c = runnable;
        this.d = j;
        this.e = j2;
        this.f = timeUnit;
    }

    @Override // g42.b
    public final ScheduledFuture a(f42 f42Var) {
        switch (this.a) {
            case 0:
                e42 e42Var = this.b;
                return e42Var.b.scheduleAtFixedRate(new c42(e42Var, this.c, f42Var, 0), this.d, this.e, this.f);
            default:
                e42 e42Var2 = this.b;
                return e42Var2.b.scheduleWithFixedDelay(new c42(e42Var2, this.c, f42Var, 2), this.d, this.e, this.f);
        }
    }
}
