commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject Re: [collection] some support for size-limited List ?
Date Wed, 14 Feb 2007 02:17:19 GMT
If you don't like those particular implementations, you can decorate
any buffer using the BoundedBuffer class.


On 2/13/07, simon.kitching@xtra.co.nz <simon.kitching@xtra.co.nz> wrote:
> Have you looked at CircularFifoBuffer and BoundedFifoBuffer?
>
> ---- nicolas de loof <nicolas.deloof@gmail.com> 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 <phidias51@yahoo.com>:
> > >
> > > Did you try the FixedSizeList?
> > >
> > > Mark
> > >
> > > ----- Original Message ----
> > > From: nicolas de loof <nicolas.deloof@gmail.com>
> > > 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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message