mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
31 lines
1 KiB
Java
31 lines
1 KiB
Java
|
package androidx.dynamicanimation.animation;
|
||
|
|
||
|
import android.util.FloatProperty;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public abstract class FloatPropertyCompat<T> {
|
||
|
final String mPropertyName;
|
||
|
|
||
|
public abstract float getValue(T t);
|
||
|
|
||
|
public abstract void setValue(T t, float f);
|
||
|
|
||
|
public FloatPropertyCompat(String str) {
|
||
|
this.mPropertyName = str;
|
||
|
}
|
||
|
|
||
|
public static <T> FloatPropertyCompat<T> createFloatPropertyCompat(final FloatProperty<T> floatProperty) {
|
||
|
return new FloatPropertyCompat<T>(floatProperty.getName()) { // from class: androidx.dynamicanimation.animation.FloatPropertyCompat.1
|
||
|
@Override // androidx.dynamicanimation.animation.FloatPropertyCompat
|
||
|
public float getValue(T t) {
|
||
|
return ((Float) floatProperty.get(t)).floatValue();
|
||
|
}
|
||
|
|
||
|
@Override // androidx.dynamicanimation.animation.FloatPropertyCompat
|
||
|
public void setValue(T t, float f) {
|
||
|
floatProperty.setValue(t, f);
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|