Hi,

Instead of deprecating since it is such a small class would it not be better 
to just create a new class that has your desired interface and deprecate old 
class complete. Perhaps have your new class named CircularArrayBuffer or 
something. That way you don't have to worry about backwards compat.

On Thu, 20 Dec 2001 08:27, 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.

-- 
Cheers,

Pete

"The ability to quote is a serviceable substitute for wit." -- Maugham

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

Reply via email to