TreeMap's keys as a sorted set
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dmitry_Savvateev
Posted On:   Friday, November 23, 2001 05:29 AM

Is there a quick and easy way to obtain set of keys from a sorted map in form of a sorted set? keySet() method only returns a plain Set.

Re: TreeMap's keys as a sorted set

Posted By:   John_Zukowski  
Posted On:   Friday, November 23, 2001 08:59 PM

The best you can do is pass the Set returned to the constructor for a TreeSet and get the SortedSet from that.
About | Sitemap | Contact