On Wed, Dec 19, 2001 at 04:27:29PM -0500, Berin Loritsch wrote:
> I would like to alter the CircularBuffer's API (using deprecation of course) 
> with the
> following cosmetic changes:
> 
> class CircularBuffer
> {
>      add( Object obj ); // was append()
>      Object remove(); // was get()
> 
>      int size(); // was getContentSize()
> 
>      int isEmpty(); // remains the same
> }
> 
> I would also like to deprecate the getBufferSize(), unless someone can give 
> me a practical
> reason for it's use.  CircularBuffer does resize itself, so it's buffer size 
> does not need
> to be managed externally.  If you want to fix the size of the CircularBuffer, 
> you have to
> rely on a constant value that does not change--so getBufferSize() won't work 
> for that
> purpose.  It may be necessary for the internal functions, but it can be 
> encapsulated inside
> with a private accessor.

+1

--Jeff

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to