Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 20CC9EACC for ; Sun, 24 Feb 2013 05:23:53 +0000 (UTC) Received: (qmail 41059 invoked by uid 500); 24 Feb 2013 05:23:51 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 40324 invoked by uid 500); 24 Feb 2013 05:23:51 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 40307 invoked by uid 99); 24 Feb 2013 05:23:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Feb 2013 05:23:50 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of osmankhalid2005@gmail.com designates 74.125.82.169 as permitted sender) Received: from [74.125.82.169] (HELO mail-we0-f169.google.com) (74.125.82.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Feb 2013 05:23:44 +0000 Received: by mail-we0-f169.google.com with SMTP id t11so1661427wey.28 for ; Sat, 23 Feb 2013 21:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Uf1I1mLXCyW+ZL2ixJySyI2qiMGdKUCVAiMNxgyC8kQ=; b=r2nYZwZrTkI8D42ibAQDOxRxJKuQZsTxXBW5ElPmrg2PSVcpe37rbCMGLSFDMYRa7Q 27f5IquEzR/NFY3XfkrZXDNciB37fibP18R95qPjN8lsQxFTLc3a2sbpw86JX+F2nfkr MrLhcJt5NZGxGYjmqAS9Spv9UDdcRKUFijNvxC2e7/F73omSZinT5U7oORsCnyDtMAE/ uu8oYc9W/9nybZNAIN1U7811gnxSj+mbj4v/LEDTti6Ig9zNtsZ0Y2tMMVt1Q1LzBVn8 ltiDljbqZlWNc/8TlgenYrP4pw2pNoU2hE0dSjZcasqbkICTl+LiB/BBZIhggNdgI9IL kQtQ== MIME-Version: 1.0 X-Received: by 10.194.57.206 with SMTP id k14mr11802500wjq.26.1361683403067; Sat, 23 Feb 2013 21:23:23 -0800 (PST) Received: by 10.180.144.168 with HTTP; Sat, 23 Feb 2013 21:23:22 -0800 (PST) In-Reply-To: References: Date: Sat, 23 Feb 2013 23:23:22 -0600 Message-ID: Subject: Re: Equivalent of LinkedHashMap meetingEntries in commons primitives From: Osman Khalid To: Commons Users List Content-Type: multipart/alternative; boundary=047d7ba97e8889581204d6719f92 X-Virus-Checked: Checked by ClamAV on apache.org --047d7ba97e8889581204d6719f92 Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > First off, floating points make terrible keys. Do you really need them as > keys, or are you really using this as pair ? > > 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 > wrote: > > > Hi. > > > > I am using a data structure using standard java api: > > > > LinkedHashMap meetingEntries; > > > > I want it to changed to primitive types as: > > > > LinkedHashMap 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 > > --047d7ba97e8889581204d6719f92--