EnumSet doesn't implement SequencedSet

Tagir Valeev amaembo at gmail.com
Tue May 23 09:57:16 UTC 2023


Hello!

Looks like this was overlooked. On the other hand, it could even implement
SortedSet or Navigable set, as it's essentially not just ordered but
sorted, according to the enum natural order. Same for EnumMap.

With best regards,
Tagir Valeev

On Tue, May 23, 2023, 11:46 Andrey Turbanov <turbanoff at gmail.com> wrote:

> Hello.
> I've noticed that EnumSet unfortunately doesn't implement the newly
> introduced interface SequencedSet.
> From the first look it fits into it.
> Is there a reason for that? Sorry if it was already discussed.
>
> Andrey Turbanov
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20230523/44e4a6e3/attachment.htm>


More information about the core-libs-dev mailing list