package y8;

import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes2.dex */
public final class h {

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

    @Nullable
    private TimeInterpolator interpolator = null;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f36878c = 0;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public int f36879d = 1;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public long f36877b = 150;

    public h(long j10) {
        this.f36876a = j10;
    }

    public static h b(ObjectAnimator objectAnimator) {
        long startDelay = objectAnimator.getStartDelay();
        long duration = objectAnimator.getDuration();
        TimeInterpolator interpolator = objectAnimator.getInterpolator();
        h hVar = new h();
        hVar.f36878c = 0;
        hVar.f36879d = 1;
        hVar.f36876a = startDelay;
        hVar.f36877b = duration;
        hVar.interpolator = interpolator;
        hVar.f36878c = objectAnimator.getRepeatCount();
        hVar.f36879d = objectAnimator.getRepeatMode();
        return hVar;
    }

    public final void a(Animator animator) {
        animator.setStartDelay(this.f36876a);
        animator.setDuration(this.f36877b);
        animator.setInterpolator(getInterpolator());
        if (animator instanceof ValueAnimator) {
            ValueAnimator valueAnimator = (ValueAnimator) animator;
            valueAnimator.setRepeatCount(this.f36878c);
            valueAnimator.setRepeatMode(this.f36879d);
        }
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof h)) {
            return false;
        }
        h hVar = (h) obj;
        if (this.f36876a == hVar.f36876a && this.f36877b == hVar.f36877b && this.f36878c == hVar.f36878c && this.f36879d == hVar.f36879d) {
            return getInterpolator().getClass().equals(hVar.getInterpolator().getClass());
        }
        return false;
    }

    @Nullable
    public TimeInterpolator getInterpolator() {
        TimeInterpolator timeInterpolator = this.interpolator;
        return timeInterpolator != null ? timeInterpolator : a.f36865b;
    }

    public final int hashCode() {
        long j10 = this.f36876a;
        long j11 = this.f36877b;
        return ((((getInterpolator().getClass().hashCode() + (((((int) (j10 ^ (j10 >>> 32))) * 31) + ((int) ((j11 >>> 32) ^ j11))) * 31)) * 31) + this.f36878c) * 31) + this.f36879d;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("\n");
        sb.append(h.class.getName());
        sb.append('{');
        sb.append(Integer.toHexString(System.identityHashCode(this)));
        sb.append(" delay: ");
        sb.append(this.f36876a);
        sb.append(" duration: ");
        sb.append(this.f36877b);
        sb.append(" interpolator: ");
        sb.append(getInterpolator().getClass());
        sb.append(" repeatCount: ");
        sb.append(this.f36878c);
        sb.append(" repeatMode: ");
        return u.a.b(sb, this.f36879d, "}\n");
    }
}
