I am using a LinkedHashMap<Double, String>
in my program. But I need one with primitive data types. In trove we have map but it is not ordered? Any idea about ordered one?
Asked
Active
Viewed 1,678 times
2

Bernhard Barker
- 54,589
- 14
- 104
- 138

Osman Khalid
- 778
- 1
- 7
- 22
2 Answers
-3
It is not a problem at all Use this:
private TDoubleObjectMap<String> obj = new TDoubleObjectHashMap<String>();
where TDoubleObjectMap comes from gnu.trove.map and HashMap comes from gnu.trove.map.hash; P.S. It looks like there isn't linked map classes.

cdkrot
- 279
- 1
- 2
- 8
-
this doesnt answer the question – therealprashant Apr 07 '17 at 13:59
-
How can TDoubleObjectHashMap be used as an Ordered map? – Atom May 08 '17 at 21:29