提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
/** |
|
4 |
* @author 47081 |
|
5 |
* @version 1.0 |
|
6 |
* @description 光盘状态 |
|
7 |
* @date 2021/2/22 |
|
8 |
*/ |
|
9 |
public enum EM_DISK_STATE { |
|
10 |
/** 未知 */ |
|
11 |
EM_DISK_STATE_UNKNOWN, |
|
12 |
/** 已放磁盘 */ |
|
13 |
EM_DISK_STATE_EXIST, |
|
14 |
/** 未放磁盘 */ |
|
15 |
EM_DISK_STATE_NO_EXIST, |
|
16 |
/** 需要换盘 */ |
|
17 |
EM_DISK_STATE_NEED_CHANGE; |
|
18 |
|
|
19 |
public static EM_DISK_STATE getDiskState(int state) { |
|
20 |
for (EM_DISK_STATE diskState : EM_DISK_STATE.values()) { |
|
21 |
if (diskState.ordinal() == state) { |
|
22 |
return diskState; |
|
23 |
} |
|
24 |
} |
|
25 |
return EM_DISK_STATE_UNKNOWN; |
|
26 |
} |
|
27 |
} |