package com.qianwen.core.coderule.constant.enums;
|
|
/* loaded from: blade-starter-coderule-9.3.0.0-SNAPSHOT.jar:org/springblade/core/coderule/constant/enums/SourcePropertyEnum.class */
|
public enum SourcePropertyEnum {
|
CODE(0, "代码"),
|
NAME(1, "名称");
|
|
private final Integer type;
|
private final String description;
|
|
SourcePropertyEnum(final Integer type, final String description) {
|
this.type = type;
|
this.description = description;
|
}
|
|
public Integer getType() {
|
return this.type;
|
}
|
|
public String getDescription() {
|
return this.description;
|
}
|
|
public static SourcePropertyEnum of(Integer elementType) {
|
if (elementType == null) {
|
return null;
|
}
|
SourcePropertyEnum[] values = values();
|
for (SourcePropertyEnum elementEnum : values) {
|
if (elementEnum.type.equals(elementType)) {
|
return elementEnum;
|
}
|
}
|
return null;
|
}
|
}
|