package androidx.core.view;

import android.os.Build;
import android.view.View;
import android.view.animation.Interpolator;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes.dex */
public final class l2 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public k2 f1784a;

    public l2(int i10, @Nullable Interpolator interpolator, long j10) {
        if (Build.VERSION.SDK_INT >= 30) {
            this.f1784a = new j2(i10, interpolator, j10);
        } else {
            this.f1784a = new h2(i10, interpolator, j10);
        }
    }

    public static void setCallback(@NonNull View view, @Nullable d2 d2Var) {
        if (Build.VERSION.SDK_INT >= 30) {
            j2.setCallback(view, d2Var);
        } else {
            h2.setCallback(view, d2Var);
        }
    }

    @Nullable
    public Interpolator getInterpolator() {
        return this.f1784a.getInterpolator();
    }
}
