RFR 7065380 : Allow Collections.sort to sort Collections.singletonList() result

Rémi Forax forax at univ-mlv.fr
Thu Mar 1 21:03:16 UTC 2012

On 03/01/2012 09:58 PM, Mike Duigou wrote:
> I thought about that but the usual issue of non-O(1) size() methods lead me to avoid having a size() in addition to the toArray(). Not perfect. :(

not perfect but you're right, it's better than calling size().

> Mike


More information about the core-libs-dev mailing list