yangys
2024-05-07 eaf6878850c029ac359d60409c7c9fcfa09c1852
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
package com.qianwen.core.coderule.constant.enums;
 
/* loaded from: blade-starter-coderule-9.3.0.0-SNAPSHOT.jar:org/springblade/core/coderule/constant/enums/SourcePropertyEnum.class */
public enum SourcePropertyEnum {
    CODE(0, "代码"),
    NAME(1, "名称");
    
    private final Integer type;
    private final String description;
 
    SourcePropertyEnum(final Integer type, final String description) {
        this.type = type;
        this.description = description;
    }
 
    public Integer getType() {
        return this.type;
    }
 
    public String getDescription() {
        return this.description;
    }
 
    public static SourcePropertyEnum of(Integer elementType) {
        if (elementType == null) {
            return null;
        }
        SourcePropertyEnum[] values = values();
        for (SourcePropertyEnum elementEnum : values) {
            if (elementEnum.type.equals(elementType)) {
                return elementEnum;
            }
        }
        return null;
    }
}