Maybe Trove's TObjectMapLong? 

[1] http://trove4j.sourceforge.net/javadocs/gnu/trove/map/TObjectLongMap.html

 
HTH, 

Bruno P. Kinoshita
http://kinoshita.eti.br
http://tupilabs.com


>________________________________
> From: Gary Gregory <garydgreg...@gmail.com>
>To: Commons Developers List <dev@commons.apache.org> 
>Sent: Tuesday, November 5, 2013 11:39 PM
>Subject: I need a map for long and double
> 
>
>Hi All:
>
>I'm looking for a Map implementation that takes a String as a key and a
>long as the value (and another taking a double as the value). I'd rather
>not take the extra memory of using generic map with a Long object value hit
>since the maps will have up to 150,000 entries. That would save me... a meg
>for each map I am guestimating (on a 64-bit JVM). A meg here, a meg there...
>
>I did not see anything in [collections] or Google Guava.
>
>Thoughts?
>
>Gary
>
>-- 
>E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
>Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
>JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>Spring Batch in Action <http://www.manning.com/templier/>
>Blog: http://garygregory.wordpress.com
>Home: http://garygregory.com/
>Tweet! http://twitter.com/GaryGregory
>
>
>

Reply via email to