当前位置:网站首页>Enum demo
Enum demo
2022-06-30 09:27:00 【Xiao Lu, a migrant worker in Beijing】
public enum ContactTypeEnum {
CALL_CONNECTED("CallEstablish"," call establishment 、 transfer "),
BE_CONSULT_CONNECTED("BeConsultEstablish"," Being consulted "),
BE_CONFERENCED("BeConferenceEstablish"," By conference "),
CONSULT_TRANSFER("ConsultTransfer"," Consult and transfer ");
private String code;
private String desc;
ContactTypeEnum(String code, String desc) {
this.code = code;
this.desc = desc;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
public static ContactTypeEnum getFromCode(String code){
for (ContactTypeEnum type : ContactTypeEnum.values()){
if (type.getCode() == code)
return type;
}
return null;
}
}
边栏推荐
- Esp32 things (3): overview of the overall system design
- float
- RPC understanding
- Talk about the job experience of kotlin cooperation process
- Rew acoustic test (VI): signal and measurement
- Flutter 0001, environment configuration
- QR code generation and analysis
- Express の Hello World
- Esp32 things (VIII): music playing function of function development
- Use of Baidu face recognition API
猜你喜欢

Use Huawei performance management service to configure the sampling rate on demand

Rew acoustic test (VI): signal and measurement

Sort (simple description)

Opencv learning notes -day3 (mat object and creation related operations mat:: clone(), mat:: copyto(), mat:: zeros(), mat:: ones(), scalar()...)

桂林 稳健医疗收购桂林乳胶100%股权 填补乳胶产品线空白

Express file upload

Metasploit practice - SSH brute force cracking process

Deep understanding of continuation principle

Anchorgenerator for mmdet line by line interpretation

Deep understanding of kotlin collaboration context coroutinecontext
随机推荐
127.0.0.1, 0.0.0.0 and localhost
Detailed explanation of pipline of mmdetection
Interviewer: do you understand the principle of recyclerview layout animation?
Express file download
Set, map and modularity
The elegant combination of walle and Jianbao
Talk about how the kotlin process started?
QT downloading files through URL
Rew acoustic test (IV): test principle of rew
Research on lg1403 divisor
Esp32 things (VIII): music playing function of function development
Opencv learning notes-day9 opencv's own color table operation (colormap coloraptypes enumeration data types and applycolormap() pseudo color function)
Experience of an acmer
Baidu map JS browsing terminal
Opencv learning notes -day8 (keyboard typing (waitkey()); Wait for typing) action: triggers some action when the appropriate character is typed using the keyboard)
Esp32 things (I): Preface
Do you want the dialog box that pops up from the click?
Net framework system requirements
[JPEG] how to compile JPEG turbo library files on different platforms
Opencv learning notes -day13 pixel value statistics calculation of maximum and minimum values, average values and standard deviations (use of minmaxloc() and meanstddev() functions)