Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 77713 invoked from network); 3 Jul 2005 11:34:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jul 2005 11:34:05 -0000 Received: (qmail 28868 invoked by uid 500); 3 Jul 2005 11:34:02 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 27937 invoked by uid 500); 3 Jul 2005 11:33:59 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 27912 invoked by uid 99); 3 Jul 2005 11:33:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jul 2005 04:33:58 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [68.230.241.30] (HELO fed1rmmtao09.cox.net) (68.230.241.30) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jul 2005 04:34:00 -0700 Received: from imbrium1 ([68.2.84.26]) by fed1rmmtao09.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with SMTP id <20050703113355.MXNQ7275.fed1rmmtao09.cox.net@imbrium1> for ; Sun, 3 Jul 2005 07:33:55 -0400 Message-ID: <006701c57fc3$1674c9b0$020ea8c0@imbrium1> From: "Wendy Smoak" To: Subject: [collections] Name that data structure Date: Sun, 3 Jul 2005 04:22:38 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm looking through the Collections API, but not finding exactly what I want... hoping someone who's more familiar with it can point me in the right direction. What I'm trying to do is more or less what you see on catalog sites where they'll list the most recent items you've looked at, newest on top. So it's ordered (List), but has no duplicates (Set), and I need to have a max size. ListOrderedSet is almost there, except that it retains the 'old' position if you add the same item again. (And has no max length.) So... before I either write it myself or extend ListOrderedSet to make it do what I want, does anyone have another suggestion? And what would _you_ call it? Thanks, Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org