package com.qianwen.smartman.modules.tpm.enums; /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/tpm/enums/ExecuteEnum.class */ public enum ExecuteEnum { E1(0, "否"), E2(1, "是"); private final int type; private final String desc; ExecuteEnum(final int type, final String desc) { this.type = type; this.desc = desc; } public int getType() { return this.type; } public String getDesc() { return this.desc; } public static ExecuteEnum of(Integer type) { if (type == null) { return null; } ExecuteEnum[] values = values(); for (ExecuteEnum urgencyEnum : values) { if (urgencyEnum.type == type.intValue()) { return urgencyEnum; } } return null; } public static String getDescDetail(Integer type) { if (type == null) { return null; } ExecuteEnum[] values = values(); for (ExecuteEnum executeEnum : values) { if (executeEnum.type == type.intValue()) { return executeEnum.getDesc(); } } return null; } }