<div dir="ltr"><div dir="ltr">On Mon, May 12, 2025 at 12:00 PM Archie Cobbs <<a href="mailto:archie.cobbs@gmail.com">archie.cobbs@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"><div dir="ltr"><div>I would like to offer to do the following:</div><div><ul><li>Change the title of this bug from "retrofit ArrayDeque to implement List" to "Add indexed get() and set() methods to ArrayDeque"</li></ul></div><div><ul><li>Propose a corresponding PR and CSR to add <span style="font-family:monospace">get(int)</span> and <span style="font-family:monospace">set(int, E)</span> methods to <span style="font-family:monospace">ArrayDeque</span></li></ul></div><div>But first I want to check with this list first to see if there are any objections?</div></div></blockquote><div><br></div><div>After some discussion it seems the more complete solution might be better, that is, giving <span style="font-family:monospace">ArrayDeque</span> a true <span style="font-family:monospace">List</span> view rather than just adding <span style="font-family:monospace">get()</span> and <span style="font-family:monospace">set()</span>. Since <span style="font-family:monospace">ArrayDeque</span>'s current <span style="font-family:monospace">hashCode()</span>/<span style="font-family:monospace">equals()</span> is not compatible with <span style="font-family:monospace">List</span>, this would take the form of an <span style="font-family:monospace">asList()</span> method, etc.</div><div><br></div><div>Any thoughts appreciated. In the meantime I'll explore what that might look like.</div><div><br></div><div>Thanks,</div><div>-Archie</div><div><br></div></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Archie L. Cobbs<br></div></div>