mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-27 03:24:17 +01:00
android: Convert IntSetting to Kotlin
This commit is contained in:
parent
2439fc8374
commit
6e7fdcb484
@ -1,23 +0,0 @@
|
|||||||
package org.yuzu.yuzu_emu.features.settings.model;
|
|
||||||
|
|
||||||
public final class IntSetting extends Setting {
|
|
||||||
private int mValue;
|
|
||||||
|
|
||||||
public IntSetting(String key, String section, int value) {
|
|
||||||
super(key, section);
|
|
||||||
mValue = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getValue() {
|
|
||||||
return mValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setValue(int value) {
|
|
||||||
mValue = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getValueAsString() {
|
|
||||||
return Integer.toString(mValue);
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,9 @@
|
|||||||
|
package org.yuzu.yuzu_emu.features.settings.model
|
||||||
|
|
||||||
|
class IntSetting(
|
||||||
|
key: String,
|
||||||
|
section: String,
|
||||||
|
var value: Int
|
||||||
|
) : Setting(key, section) {
|
||||||
|
override val valueAsString = value.toString()
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user