I have a LinkedHashMap based on "Double" data types.
LinkedHashMap<Double, Double> meetingRecord;I want it to be in primitive data type, which is not default java api
LinkedHashMap<double, double> meetingRecord;Is there any equivalent available guava? I don't want to use loop to convert a huge list from Double to double.
Is it not a matter of premature optimization? Autoboxing and -unboxing is quite fast, and garbage collection of short-lived objects is too. Did you analyze the performance impact?
On Sunday, February 24, 2013 12:00:02 AM UTC+1, Osman Khalid wrote:
I have a LinkedHashMap based on "Double" data types.
LinkedHashMap<Double, Double> meetingRecord;I want it to be in primitive data type, which is not default java api
LinkedHashMap<double, double> meetingRecord;Is there any equivalent available guava? I don't want to use loop to convert a huge list from Double to double.
--
--
guava-...@googlegroups.com
Project site: http://guava-libraries.googlecode.com
This group: http://groups.google.com/group/guava-discuss
This list is for general discussion.
To report an issue: http://code.google.com/p/guava-libraries/issues/entry
To get help: http://stackoverflow.com/questions/ask (use the tag "guava")
---
You received this message because you are subscribed to the Google Groups "guava-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guava-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.