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