commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [Collections] Circular Buffer
Date Wed, 07 Mar 2012 13:06:05 GMT
On 6 March 2012 06:47, manoj mokashi <manojmokashi@gmail.com> wrote:
> The existing CircularFifoBuffer would suffice if it had an efficient
> get(index) method, which
> gets an element with the specified index from the end.

I think it should be possible to do this efficiently as the underlying
storage is an array.

> btw, the code i posted originally refers mistakenly to another Int
> Buffer class and is not correct.
> Also the IllegalArgumentCheck and the fill constructor needs changing.
> Sorry about that.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>

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


Mime
View raw message