You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also one has to remember to use unsortedFields(), because fields() return fields in lexicographical order, which is useless when one needs to figure out the ordinal of each enum constant.
We should add an enumConstants() method that would basically do the same thing as above (except a bit more efficiently).
This can be done in a micro release.
The text was updated successfully, but these errors were encountered:
Currently, it is a bit inconvenient to obtain the list of enum constants, one basically has to resort to code like this:
Also one has to remember to use
unsortedFields()
, becausefields()
return fields in lexicographical order, which is useless when one needs to figure out the ordinal of each enum constant.We should add an
enumConstants()
method that would basically do the same thing as above (except a bit more efficiently).This can be done in a micro release.
The text was updated successfully, but these errors were encountered: