It is just an int . If you need to take the value out of an enum, you can’t avoid calling a method or using a . value , because enums are actually objects of its own type, not primitives.
It is just an int . If you need to take the value out of an enum, you can’t avoid calling a method or using a . value , because enums are actually objects of its own type, not primitives.