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 FeedbackProcessStatusEnum {
    WAITING(1, "待执行"),
    PROCESSING(2, "执行中"),
    COMPLETED(3, "执行完成");
    
    private final Integer value;
    private final String description;
 
    FeedbackProcessStatusEnum(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 FeedbackProcessStatusEnum of(Integer value) {
        if (value == null) {
            return null;
        }
        FeedbackProcessStatusEnum[] values = values();
        for (FeedbackProcessStatusEnum processEnum : values) {
            if (processEnum.value.equals(value)) {
                return processEnum;
            }
        }
        return null;
    }
 
    public boolean isEqual(Integer value) {
        return this.value.equals(value);
    }
}