java Programming Glossary: legno
Getting enum associated with int value http://stackoverflow.com/questions/11047756/getting-enum-associated-with-int-value enum associated with int value Previously I had my LegNo enums defined simply as NO_LEG LEG_ONE LEG_TWO and by calling.. simply as NO_LEG LEG_ONE LEG_TWO and by calling return LegNo.values i I was able to get the value associated with each enum... associated with each enum. But now I've decided I want the LegNo enum NO_LEG to be the int 1 instead of 0 so I decided to use..
|