Migrating methods in Collections

Brian Goetz brian.goetz at oracle.com
Thu Dec 24 17:43:03 UTC 2015


Since we're redesigning...

>      boolean removeAll(AnyCollection<? extends E> c);   // not
> Collection<?>
>      boolean retainAll(AnyCollection<? extends E> c);   // not
> Collection<?>

Arguably better handled by remove(Predicate)

>      long findFirst(E e);
>      long findLast(E e);

Arguably better as findXxx(Predicate)



More information about the valhalla-spec-experts mailing list