commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Osman Khalid <osmankhalid2...@gmail.com>
Subject Re: Equivalent of LinkedHashMap<Double, Double> meetingEntries in commons primitives
Date Sun, 24 Feb 2013 05:23:22 GMT
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 <coloraura.com@gmail.com>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 <osmankhalid2005@gmail.com>
> 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: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message