houzhongjian
2024-10-30 a28ca3f36d0ace05966a8c0fac1e4b5fe921f882
提交 | 用户 | 时间
ce910c 1 package com.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_COLLECTIVITY_STATE {
10   /** 成功 */
11   EM_COLLECTIVITY_STATE_SUCCESSED,
12   /** 失败 */
13   EM_COLLECTIVITY_STATE_FAILED;
14
15   /**
16    * 默认返回failed
17    * @param state
18    * @return
19    */
20   public EM_COLLECTIVITY_STATE getCollectivityState(int state) {
21     for (EM_COLLECTIVITY_STATE collectivityState : EM_COLLECTIVITY_STATE.values()) {
22       if (collectivityState.ordinal() == state) {
23         return collectivityState;
24       }
25     }
26     return EM_COLLECTIVITY_STATE_FAILED;
27   }
28 }