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