Thanks Daniel You are right. Trove has some functionality, but again I am stuck. As I want the order of insertion be preserved, but Trove's TDoubleDoubleHashMap does not preserve order of insertion.
(I just want a pair of double, double be stored, and later i need to retrieve double[] from values) Regards On Sat, Feb 23, 2013 at 11:17 PM, Daniel Pitts <[email protected]>wrote: > First off, floating points make terrible keys. Do you really need them as > keys, or are you really using this as pair<double, double> ? > > I think Trove is the library you might want, not apache commons. > > Sent from my iPad > > On Feb 23, 2013, at 4:57 PM, Osman Khalid <[email protected]> > wrote: > > > Hi. > > > > I am using a data structure using standard java api: > > > > LinkedHashMap<Double, Double> meetingEntries; > > > > I want it to changed to primitive types as: > > > > LinkedHashMap<double, double> meetingEntries; > > > > Is it possible? What would be code for that commons primitives? > > > > I'll be really grateful for reply! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
