1
0
Fork 0
forked from suyu/suyu

android: Convert IntSetting to Kotlin

This commit is contained in:
Charles Lombardo 2023-03-07 17:19:48 -05:00 committed by bunnei
parent 2439fc8374
commit 6e7fdcb484
2 changed files with 9 additions and 23 deletions

View file

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

View file

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