com.nebula.boxes.iface.enums.AffirmPhaseEnum Maven / Gradle / Ivy
The newest version!
package com.nebula.boxes.iface.enums;
import java.util.List;
import com.spring.boxes.dollar.support.EnumType;
import com.spring.boxes.dollar.support.EnumWrap;
import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum AffirmPhaseEnum implements EnumType {
EXISTED(1, "有阶段经验"),
NOTHING(3, "无阶段经验");
private final int value;
private final String label;
@Override
public String getLabel() {
return this.label;
}
@Override
public String getName() {
return this.name();
}
@Override
public Integer getValue() {
return this.value;
}
public static class Opt extends EnumWrap {
@Override
public List valueList() {
return Lists.newArrayList(values());
}
public static Opt INSTANCE() {
return SingleHold.opt;
}
private static class SingleHold {
public static Opt opt = new Opt();
}
}
}