package com.airbnb.lottie.value; import com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation; /* loaded from: classes.dex */ public class LottieValueCallback { private BaseKeyframeAnimation animation; private final LottieFrameInfo frameInfo; protected T value; public LottieValueCallback() { this.frameInfo = new LottieFrameInfo<>(); this.value = null; } public LottieValueCallback(T t) { this.frameInfo = new LottieFrameInfo<>(); this.value = t; } public final void setValue(T t) { this.value = t; BaseKeyframeAnimation baseKeyframeAnimation = this.animation; if (baseKeyframeAnimation != null) { baseKeyframeAnimation.notifyListeners(); } } public final T getValueInternal(float f, float f2, T t, T t2, float f3, float f4, float f5) { return getValue(this.frameInfo.set(f, f2, t, t2, f3, f4, f5)); } public final void setAnimation(BaseKeyframeAnimation baseKeyframeAnimation) { this.animation = baseKeyframeAnimation; } public T getValue(LottieFrameInfo lottieFrameInfo) { return this.value; } }