All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nebula.boxes.iface.enums.IndustryEnum Maven / Gradle / Ivy

The newest version!
package com.nebula.boxes.iface.enums;

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;

import java.util.List;

@Getter
@AllArgsConstructor
public enum IndustryEnum implements EnumType {

    ITEM1(3, "网络/科技"),
    ITEM2(5, "金融/证券"),
    ITEM3(7, "消费/制造"),
    ITEM4(9, "教育/培训"),
    ITEM5(11, "地产/媒体"),
    ITEMO(100, "其它");

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy