forked from suyu/suyu
android: Convert IntSetting to Kotlin
This commit is contained in:
parent
2439fc8374
commit
6e7fdcb484
2 changed files with 9 additions and 23 deletions
|
@ -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 a new issue