> On Mar 26, 2018, at 11:46 AM, Martin Buchholz wrote:
>
> Сергей, I'm sort of maintaining all those collection classes, and I have on
> occasion also wanted to have indexOf methods in Array.java. But:
>
> Arrays are generally discouraged. Any new static methods on Arrays (or,
> where I actu
Сергей, I'm sort of maintaining all those collection classes, and I have on
occasion also wanted to have indexOf methods in Array.java. But:
Arrays are generally discouraged. Any new static methods on Arrays (or,
where I actually want them, on the array object itself! Requires a java
language c
Hi everyone,
currently array-based collections, in particular java.util.ArrayList,
java.util.Arrays$ArrayList, java.util.Vector,
java.util.concurrent.CopyOnWriteArrayList have duplicated code in indexOf() and
lastIndexOf().
My proposal is to extract this code into java.util.Arrays helping JIT