Re: How to convert hashmap to treeset ?

I had to lookup MultiHashMap since its not part of the Java 1.7 JDK. As a side note, I am not certain if it is worth writing a whole new class for something which can be done using HashMap<K, List<V>).

Anyway, what elements to you want to to convert to a TreeSet? I would assume you can just to something like the following base on Formal Type parameters.

Re: How to convert hashmap to treeset ?

Originally Posted by jim829

I had to lookup MultiHashMap since its not part of the Java 1.7 JDK. As a side note, I am not certain if it is worth writing a whole new class for something which can be done using HashMap<K, List<V>).

Anyway, what elements to you want to to convert to a TreeSet? I would assume you can just to something like the following base on Formal Type parameters.