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
34
35
36
37
38
39
package com.qianwen.smartman.modules.dnc.enums;
 
public enum DncFileNameProcessRuleEnum {
    DIRTECTORY(0, "文件目录"),
    ARTBAG(1, "工艺包属性");
    
    private final Integer value;
    private final String description;
 
    DncFileNameProcessRuleEnum(final Integer value, final String description) {
        this.value = value;
        this.description = description;
    }
 
    public Integer getValue() {
        return this.value;
    }
 
    public String getDescription() {
        return this.description;
    }
 
    public static DncFileNameProcessRuleEnum of(Integer value) {
        if (value == null) {
            return null;
        }
        DncFileNameProcessRuleEnum[] values = values();
        for (DncFileNameProcessRuleEnum sourceEnum : values) {
            if (sourceEnum.value.equals(value)) {
                return sourceEnum;
            }
        }
        return null;
    }
 
    public boolean isEqual(Integer value) {
        return this.value.equals(value);
    }
}