android: Convert IntSetting to Kotlin

This commit is contained in:
Charles Lombardo authored and bunnei committed 2023-06-03 00:05:36 -07:00
1 parent 2439fc8374
commit 6e7fdcb484
2 files changed
+9 -23

No files matched your search

@@ -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()
}