32 lines
690 B
Java
32 lines
690 B
Java
package eu.eudat.commons.enums;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonValue;
|
|
import eu.eudat.data.converters.enums.DatabaseEnum;
|
|
|
|
import java.util.Map;
|
|
|
|
public enum RecentActivityItemType implements DatabaseEnum<Short> {
|
|
|
|
Dmp((short) 0),
|
|
Description((short) 1);
|
|
|
|
private final Short value;
|
|
|
|
RecentActivityItemType(Short value) {
|
|
this.value = value;
|
|
}
|
|
|
|
@Override
|
|
@JsonValue
|
|
public Short getValue() {
|
|
return value;
|
|
}
|
|
|
|
private static final Map<Short, RecentActivityItemType> map = EnumUtils.getEnumValueMap(RecentActivityItemType.class);
|
|
|
|
public static RecentActivityItemType of(Short i) {
|
|
return map.get(i);
|
|
}
|
|
|
|
}
|