Added fancy name

This commit is contained in:
Luca Frosini 2021-11-19 11:16:50 +01:00
parent c57ff70f3d
commit 3a7a908f66
1 changed files with 6 additions and 0 deletions

View File

@ -23,15 +23,21 @@ public enum CMItemStatus {
}
protected final String value;
protected final String fancyValue;
private CMItemStatus(String value) {
this.value = value;
this.fancyValue = Character.toUpperCase(value.charAt(0)) + value.substring(1);
}
public String getValue() {
return value;
}
public String getFancyValue() {
return value;
}
public static CMItemStatus getCMItemStatusFromValue(String value) {
return CM_ITEM_STATUS_FROM_VALUE.get(value);
}