public E decode(java.lang.reflect.Field field, int ordinal) { // TODO }
Assumin
According to title, suggest
public E decode(Class> enumType, int ordinal) { return enumType.getEnumConstants()[ordinal]; }
to be called by
YourEnum enumVal = decode(YourEnum.class, ordinal)