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);
|
}
|
}
|