2
votes
1answer
110 views

Enums with different methods, useful or abuse?

I'm wondering if the way I wrote our TextHelper class is a really a proper way to do it. We have products that are interlinked in different ways and every product has multiple text fields that might ...
1
vote
2answers
1k views

Boolean flags encoded as integer implemented with EnumSet

I'm a beginner in Java so I would appreciate a review of following simple class - in fact it's my first real usage of enums. The background: I'm parsing MySQL internal client-server protocol. One of ...