summaryrefslogtreecommitdiffstats
path: root/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.java
blob: 965f1b2a23b613514bad77d9ae1711558797d6fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package org.yuzu.yuzu_emu.features.settings.model;

public final class BooleanSetting extends Setting {
    private boolean mValue;

    public BooleanSetting(String key, String section, boolean value) {
        super(key, section);
        mValue = value;
    }

    public boolean getValue() {
        return mValue;
    }

    public void setValue(boolean value) {
        mValue = value;
    }

    @Override
    public String getValueAsString() {
        return mValue ? "True" : "False";
    }
}