android: Convert FloatSetting to Kotlin
This commit is contained in:
parent
88b9d484e8
commit
2439fc8374
|
@ -1,23 +0,0 @@
|
|||
package org.yuzu.yuzu_emu.features.settings.model;
|
||||
|
||||
public final class FloatSetting extends Setting {
|
||||
private float mValue;
|
||||
|
||||
public FloatSetting(String key, String section, float value) {
|
||||
super(key, section);
|
||||
mValue = value;
|
||||
}
|
||||
|
||||
public float getValue() {
|
||||
return mValue;
|
||||
}
|
||||
|
||||
public void setValue(float value) {
|
||||
mValue = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getValueAsString() {
|
||||
return Float.toString(mValue);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
package org.yuzu.yuzu_emu.features.settings.model
|
||||
|
||||
class FloatSetting(
|
||||
key: String,
|
||||
section: String,
|
||||
var value: Float
|
||||
) : Setting(key, section) {
|
||||
override val valueAsString = value.toString()
|
||||
}
|
Reference in New Issue