EnumSet doesn't implement SequencedSet

David Alayachew davidalayachew at gmail.com
Thu May 25 18:24:29 UTC 2023


Hello folks,

Since you are asking, let me chime in and say that I use enum's very
frequently. However, my most common use case for them isn't for boolean
flags -- it's actually the strategy pattern. Meaning, attaching a piece of
logic to each value. And more importantly, I order the strategies via the
ordinal of the enum (giving me a priority queue of strategies until I find
one that solves the problem). So for me, the order matters greatly, and I
think that it should be reflected in the API.

Thank you for your time!
David Alayachew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20230525/1ef82dc7/attachment-0001.htm>


More information about the core-libs-dev mailing list