package com.qianwen.smartman.modules.dmpLog.enums; public enum LogTypeEnum { Signal(0, "信号触发日志"), Signal_Flow(1, "信号触发处理日志"), HanlderInnerMethod(2, "信号触发处理流程日志"); private final Integer type; private final String name; LogTypeEnum(final Integer type, final String name) { this.type = type; this.name = name; } public Integer getType() { return this.type; } public String getName() { return this.name; } public static LogTypeEnum getValue(Integer type) { LogTypeEnum[] values; for (LogTypeEnum logTypeEnum : values()) { if (type.equals(logTypeEnum.getType())) { return logTypeEnum; } } return null; } }