toInt static method
转换为常量类型
value
枚举
Return
转换结果
Implementation
static int toInt(QosPreferenceEnum value) {
switch (value) {
case QosPreferenceEnum.Smooth:
return 1;
case QosPreferenceEnum.Clear:
return 2;
}
}
转换为常量类型
value
枚举
Return
转换结果
static int toInt(QosPreferenceEnum value) {
switch (value) {
case QosPreferenceEnum.Smooth:
return 1;
case QosPreferenceEnum.Clear:
return 2;
}
}