common-models/src/main/java/org/opencdmp/commonmodels/enums/DmpBlueprintExtraFieldDataT...

33 lines
725 B
Java
Raw Normal View History

2024-04-26 13:05:31 +02:00
package org.opencdmp.commonmodels.enums;
2024-03-05 14:23:40 +01:00
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Map;
public enum DmpBlueprintExtraFieldDataType implements EnumValueProvider<Short> {
Text((short) 0),
RichTex((short) 1),
Date((short) 2),
Number((short) 3),
;
private final Short value;
DmpBlueprintExtraFieldDataType(Short value) {
this.value = value;
}
@JsonValue
public Short getValue() {
return value;
}
private static final Map<Short, DmpBlueprintExtraFieldDataType> map = EnumUtils.getEnumValueMap(DmpBlueprintExtraFieldDataType.class);
public static DmpBlueprintExtraFieldDataType of(Short i) {
return map.get(i);
}
}