| | |
| | | */ |
| | | public enum RgvModeType { |
| | | |
| | | STOP((short) 0, "停机模式"), |
| | | MANUAL((short) 1, "手动模式"), |
| | | AUTO((short) 2, "自动模式"), |
| | | COMPUTER((short) 3, "电脑模式"), |
| | | NONE(-1, "离线"), |
| | | STOP(0, "关机"), |
| | | HAND(1, "手动"), |
| | | HALF_AUTO(2, "半自动"), |
| | | AUTO(3, "自动"), |
| | | AUTO2(100, "其它"), |
| | | ; |
| | | |
| | | public Short id; |
| | | public Integer id; |
| | | public String desc; |
| | | |
| | | RgvModeType(Short id, String desc) { |
| | | RgvModeType(Integer id, String desc) { |
| | | this.id = id; |
| | | this.desc = desc; |
| | | } |
| | |
| | | return null; |
| | | } |
| | | for (RgvModeType type : RgvModeType.values()) { |
| | | if (type.id.equals(id)) { |
| | | if (type.id.equals(id.intValue())) { |
| | | return type; |
| | | } |
| | | } |
| | |
| | | if (null == type) { |
| | | return null; |
| | | } |
| | | for (RgvModeType type1 : RgvModeType.values()) { |
| | | if (type1 == type) { |
| | | return type1; |
| | | for (RgvModeType rgvModeType : RgvModeType.values()) { |
| | | if (rgvModeType == type) { |
| | | return rgvModeType; |
| | | } |
| | | } |
| | | return null; |