As the accepted answer says, you cannot set the sequence number. Closest to this is a custom property :
public enum MonthEnum { JANUARY(1), FEBRUARY(2), MARCH(3), APRIL(4), MAY(5), JUNE(6), JULY(7), AUGUST(8), SEPTEMBER(9), OCTOBER(10), NOVEMBER(11), DECEMBER(12); MonthEnum(int monthOfYear) { this.monthOfYear = monthOfYear; } private int monthOfYear; public int asMonthOfYear() { return monthOfYear; } }
blubb Oct 27 '17 at 9:19 on 2017-10-27 09:19
source share