[concurrency-interest] ConcurrentNavigableMap has two keySet

Doug Lea dl at cs.oswego.edu
Tue Jun 6 11:03:05 EDT 2006


Rémi Forax wrote:
> 
> I think that navigableKeySet() can be removed from 
> ConcurrentNavigableMap and
> its implementation ConcurrentSkipListMap.
> 

Method navigableKeySet is needed in (nonconcurrent) NavigableMap to
conservatively maintain backward compatibility with SortedMap etc.
So it is also needed in subinterface ConcurrentNavigableMap, even though, as
specified, there's no reason to call it rather than just calling keySet.

-Doug




More information about the Concurrency-interest mailing list