Enums
![]() |
Forward Usage of Enum Siblings Sun, Apr 23, 2023Sometimes you want to access other values of the same enum even if they are not yet defined. Is this possible? |
![]() |
How to Enhance Java Enums With Individual Behavior Fri, Apr 12, 2019This week I learned a neat trick how Java enums can define behavior which differs for each enum value. |
![]() |
Enhancing Enums Sun, Jul 24, 2016As already mentioned elsewhere, I like Java enums a lot, because you can enhance them easily to make them more useful. But the examples I gave until now are quite complex. So here are some easier ones. |
![]() |
Bit Flag Enums Tue, May 17, 2016Java enums are nice, but how can you use them as them as bit flags? In many other programming languages this is perfectly simple. |
![]() |
Enum values() Method Should Be Avoided in Time-Critical Code Mon, May 16, 2016
|