<div dir="ltr"><div dir="ltr">On Fri, Sep 5, 2025 at 3:32 PM Pavel Rappo <<a href="mailto:pavel.rappo@gmail.com">pavel.rappo@gmail.com</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Be it Map.of or HashMap, there's no user-defined order. The only<br>
user-defined order one can currently get is by using LinkedHashMap. In<br>
the future though, we may get SequencedMap.of. </blockquote></div><div><br></div><div>I vote for adding <span style="font-family:monospace">SequencedMap.of()</span>. That seems like a good solution to the problem at hand, as well as a generally useful addition.</div><div><br></div><div>Of course if you believe that argument, then <span style="font-family:monospace">SequencedSet.of()</span> would also be a good addition, since <span style="font-family:monospace">Set.of()</span> also makes no ordering guarantees.</div><div><br></div><div>-Archie</div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Archie L. Cobbs<br></div></div>