1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| package com.zy.acs.charge.constant;
|
| public enum ChargerType {
|
| Modbus,Default;
|
| public static ChargerType getByCode(String code) {
| for (ChargerType value : values()) {
| if (value.name().equalsIgnoreCase(code)) {
| return value;
| }
| }
| return null;
| }
|
| }
|
|