public V set(S setting, V state) {
        V prev = get(setting);
        if (state == prev) {
            return state;
        }

        this.states[setting.ordinal()] = (byte) state.ordinal();
        return prev;
    }
Sets the state of a given setting.

@param setting the setting
@param state the state to set
@return the previous state of the setting
helper/src/main/java/me/lucko/helper/setting/SettingMap.java