yangys
2024-03-28 13ada1093cb8de6e31a718d2222429ded70133c8
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
package com.qianwen.smartman.modules.mdc.enums;
 
import java.util.stream.Stream;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/mdc/enums/FeedbackStatus.class */
public enum FeedbackStatus {
    WAIT_SYNC("待执行", 1),
    SYNCING("执行中", 2),
    SYNCED("执行完成", 3);
    
    private final String name;
    private final Integer value;
 
    FeedbackStatus(String name, int value) {
        this.name = name;
        this.value = Integer.valueOf(value);
    }
 
    public Integer getValue() {
        return this.value;
    }
 
    public String getName() {
        return this.name;
    }
 
    public FeedbackStatus of(final Integer value) {
        if (value == null) {
            return null;
        }
        return (FeedbackStatus) Stream.of((Object[]) values()).filter(item -> {
            return item.getValue().intValue() == value.intValue();
        }).findFirst().orElse(null);
    }
}