<div dir="ltr">Out of curiosity, is there a reason EnumSet doesn't implement SequencedSet in the Java 21 Sequenced Collections feature?  Other than not currently having a reversed() implementation, it feels like it meets the requirements for this interface.  It would have to throw UnsupportedOperationException for addFirst and addLast, but that's no different than what SortedSet does.<div><br></div><div>I suppose technically, there isn't any reason EnumSet couldn't have implemented SortedSet (aside from implementation complexities with supporting sublists in headSet()/subSet()/tailSet()), given that it already is a set which is ordered based on its elements' natural ordering.</div></div>