From: Joseph O. <jo...@en...> - 2003-02-05 11:06:36
|
On Wed, 5 Feb 2003, Jason Bell wrote: > The insertItem() method makes a whole heap of sense, so I do think that > should be implemented asap. Will do. So should addItem() be renamed to appendItem()? > Item.insertItem(int position) assuming that it would throw a > NullPointerException if that position didn't exist. Um... it's an ArrayList. It's by definition sparse. Do you mean "insert item such that it appears before other items beginning at that position?" > and > > Item.insertItem() just adds to the front (as suggested in Joseph Shelby's > email). > > I'm not too sure what to think about the duplicate getItems() issue until I > have run some more real world examples. > I think cloning the list sounds less and less bright as time goes on. --------------------------------------------------------- Joseph B. Ottinger jo...@en... http://enigmastation.com IT Consultant |