toInt static method
转换为常量类型
value
枚举
Return
转换结果
Implementation
static int toInt(QualityEnum value) {
switch (value) {
case QualityEnum.Speech:
return 1;
case QualityEnum.Default:
return 2;
case QualityEnum.Music:
return 3;
}
}