yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
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
28
29
30
31
32
33
34
35
36
37
38
39
package com.qianwen.smartman.modules.trace.enums;
 
import com.qianwen.core.tool.utils.Func;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/trace/enums/TraceStatusEnum.class */
public enum TraceStatusEnum {
    OFFLINE(1, "已下线"),
    NOT_OFFLINE(2, "未下线"),
    UNKNOWN(3, "未知");
    
    private final Integer code;
    private final String name;
 
    TraceStatusEnum(final Integer code, final String name) {
        this.code = code;
        this.name = name;
    }
 
    public Integer getCode() {
        return this.code;
    }
 
    public String getName() {
        return this.name;
    }
 
    public static TraceStatusEnum of(Integer code) {
        TraceStatusEnum[] values;
        if (Func.isEmpty(code)) {
            return UNKNOWN;
        }
        for (TraceStatusEnum value : values()) {
            if (value.code.equals(code)) {
                return value;
            }
        }
        return UNKNOWN;
    }
}