dimanche 1 novembre 2015

Getting Enum from an integer having a Class extends Enum?> object

I have seen this which is pretty nice solution if i had a string instead of integer, but in case all i have is the specific enum's class object and an integer, how to do i get the specific enum constant instance?





Aucun commentaire:

Enregistrer un commentaire