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

com.spring.boxes.dollar.enums.PauseStateEnum Maven / Gradle / Ivy

package com.spring.boxes.dollar.enums;

import java.util.List;

import com.google.common.collect.Lists;
import com.spring.boxes.dollar.support.EnumType;
import com.spring.boxes.dollar.support.EnumWrap;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum PauseStateEnum implements EnumType {

    STOP(1, "暂停"), RUNNING(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 - 2025 Weber Informatics LLC | Privacy Policy