yangys
2024-05-07 1251cce20deab6e388b1e2ff8cdddd2896db162b
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
package com.qianwen.smartman.modules.dmpLog.enums;
 
public enum LogTypeEnum {
    Signal(0, "信号触发日志"),
    Signal_Flow(1, "信号触发处理日志"),
    HanlderInnerMethod(2, "信号触发处理流程日志");
    
    private final Integer type;
    private final String name;
 
    LogTypeEnum(final Integer type, final String name) {
        this.type = type;
        this.name = name;
    }
 
    public Integer getType() {
        return this.type;
    }
 
    public String getName() {
        return this.name;
    }
 
    public static LogTypeEnum getValue(Integer type) {
        LogTypeEnum[] values;
        for (LogTypeEnum logTypeEnum : values()) {
            if (type.equals(logTypeEnum.getType())) {
                return logTypeEnum;
            }
        }
        return null;
    }
}