public V get(S setting) {
        int stateOrdinal = Byte.toUnsignedInt(this.states[setting.ordinal()]);
        return this.factory.states[stateOrdinal];
    }
Gets the state of a given setting.

@param setting the setting
@return the state
helper/src/main/java/me/lucko/helper/setting/SettingMap.java