Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 68932 invoked from network); 14 Feb 2007 02:11:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Feb 2007 02:11:12 -0000 Received: (qmail 10793 invoked by uid 500); 14 Feb 2007 02:11:18 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 9772 invoked by uid 500); 14 Feb 2007 02:11:15 -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 9761 invoked by uid 99); 14 Feb 2007 02:11:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Feb 2007 18:11:15 -0800 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=MAILTO_TO_SPAM_ADDR,NO_REAL_NAME,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of simon.kitching@xtra.co.nz designates 210.54.141.252 as permitted sender) Received: from [210.54.141.252] (HELO mta03.xtra.co.nz) (210.54.141.252) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Feb 2007 18:11:05 -0800 Received: from sf1441 ([172.23.12.61]) by mta03.xtra.co.nz with ESMTP id <20070214021043.BCYX8517.mta03.xtra.co.nz@sf1441> for ; Wed, 14 Feb 2007 15:10:43 +1300 Message-ID: <17931099.1171419043465.JavaMail.root@sf1441> Date: Wed, 14 Feb 2007 15:10:42 +1300 From: To: Jakarta Commons Users List Subject: Re: [collection] some support for size-limited List ? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) Sensitivity: Normal X-Virus-Checked: Checked by ClamAV on apache.org Have you looked at CircularFifoBuffer and BoundedFifoBuffer? ---- nicolas de loof wrote: > This one does not support add(). > > I want my list (collection ?) to be auto-limited, not fixed-sized : add will > always work, but the latest elements may be lost if list grows over maxsize. > > > 2007/2/12, Mark A Fortner : > > > > Did you try the FixedSizeList? > > > > Mark > > > > ----- Original Message ---- > > From: nicolas de loof > > To: commons-user@jakarta.apache.org > > Sent: Monday, February 12, 2007 5:11:49 AM > > Subject: [collection] some support for size-limited List ? > > > > Hello, > > > > I'm looking for a List implementation that would countains at most N > > elements. When more that N elements are added, the List is truncated. This > > looks like a Last-Recently-Used eviction feature, but I didn't finf > > support > > for such a List in commons-collections. > > > > Any suggestion ? > > > > Nico. > > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org