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

com.nebula.boxes.iface.enums.ProveAllowEnum 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 ProveAllowEnum implements EnumType {

    YES(1, "已授权"),
    NO(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();
        }

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy