com.github.dennisit.vplus.data.enums.common.LevelEnum Maven / Gradle / Ivy
package com.github.dennisit.vplus.data.enums.common;
import com.github.dennisit.vplus.data.enums.support.EnumType;
import com.github.dennisit.vplus.data.enums.support.EnumWrap;
import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.List;
@Getter
@AllArgsConstructor
public enum LevelEnum implements EnumType {
LEVEL1(1, "1级"),
LEVEL2(3, "2级"),
LEVEL3(5, "3级"),
LEVEL4(7, "4级"),
LEVEL5(9, "5级"),
LEVEL6(11, "6级"),
LEVEL7(13, "7级"),
LEVEL8(15, "8级"),
LEVEL9(17, "9级"),
LEVEL10(19, "10级");
private int value;
private String label;
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();
}
}
}