Question

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?

Was it helpful?

Solution

There is not currently a LinkedHashMap-analogous implementation in Trove. A feature request exists here. Voting there would be useful if it's a feature you're still interested in.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top