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 FeedbackTypeEnum {
    TIME_RANGE_FEEDBACK(0, "时间段反馈"),
    IMMEDIATE_FEEDBACK(1, "持续反馈"),
    CANCEL_FEEDBACK(-1, "删除反馈");
    
    private final Integer type;
    private final String description;
 
    FeedbackTypeEnum(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 FeedbackTypeEnum of(Integer type) {
        if (type == null) {
            return null;
        }
        FeedbackTypeEnum[] values = values();
        for (FeedbackTypeEnum processEnum : values) {
            if (processEnum.type.equals(type)) {
                return processEnum;
            }
        }
        return null;
    }
 
    public boolean isEqual(Integer value) {
        return this.type.equals(value);
    }
}