I have a enum SOME_ENUM
:
public enum SOME_ENUM
{
EN_ONE,
EN_TWO,
EN_THREE;
}
Will SOME_ENUM.values()
always return the enums in the order of enum declarations:
EN_ONE, EN_TWO, EN_THREE
? Is it a rule or it is not guaranteed to be not changed in the next Jdk releases?