public static boolean isOn(int switchIndex, int value) {
        return toBitSet(value).get(switchIndex);
    }
check switch status whether on according to specified value

@param switchIndex
@param value
@return
src/main/java/com/alipay/remoting/config/switches/ProtocolSwitch.java