Into

Raab, Donald Donald.Raab at gs.com
Wed Dec 26 08:09:43 PST 2012


Couldn't we push the Navigable methods up to Sorted using default methods?

> Sure. In the unlikely event that Brian agrees about going this route :-
> ), the names are up for grabs. I listed them this way because we find
> that people don't like the name "Navigable"
> (because it does not immediately imply sortedness in people's minds) so
> the less often you are forced to use it the better.
> But that's a minor concern.
> 

That's why we have a Bag, which is what toBag() would return for us.  We're fine as long as it returns Collection, as a MutableBag is a Collection.

> (Note that several method names don't exactly match up with return type
> names. There's no j.u. name for List & RandomAccess, or for a Collection
> that is not necessarily a List but unlike Set permits duplicates.
> (Further aside: If there were, then Map.values() should use it as well,
> but too late for that.))
> 
> -Doug
> 
> 


More information about the lambda-libs-spec-observers mailing list