yangys
2024-09-27 26f8e5990686bdba2119024a260d986266506757
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
40
package com.qianwen.mdc.collect.enums;
 
public enum FeedbackDetailStatusEnum {
    BE_EFFECTIVE(0, "待生效"),
    EFFECTED(1, "生效中"),
    LOSE_EFFECT(2, "已失效");
    
    private final Integer value;
    private final String description;
 
    FeedbackDetailStatusEnum(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 FeedbackDetailStatusEnum of(Integer value) {
        if (value == null) {
            return null;
        }
        FeedbackDetailStatusEnum[] values = values();
        for (FeedbackDetailStatusEnum statusEnum : values) {
            if (statusEnum.value.equals(value)) {
                return statusEnum;
            }
        }
        return null;
    }
 
    public boolean isEqual(Integer value) {
        return this.value.equals(value);
    }
}