From: Joseph O. <jo...@en...> - 2003-02-04 16:25:24
|
Okay. Changes due: create Channel.image, textinput, items ahead of time. Create an "insertItem" to match "addItem"... or do you think it makes sense for addItem to prepend as default behaviour? Lastly, shoudl getItems() duplicate the list (deep copy, shallow copy) or just return the actual list itself? I'll let the userbase decide. As soon as I get some feedback worth measuring, I'll commit. :) On Tue, 4 Feb 2003, Joseph Ottinger wrote: > Noted. I'll have a new version out very soon. > > On Tue, 4 Feb 2003, Joseph Shelby wrote: > > > Joe Shelby wrote: > > > 2) in addition to addItem() (which, using the List interface does an > > > append), there should be an insertItem that adds it to the front, > > > following normal RSS for blog standards. Right now that can be done by > > > doing "getItems().add(0, new Item(...))", but to me that's risky. > > > > And a risk involved just happened to me. > > > > currently, the internal List is created lazily, and the result is that if > > you call getList().add(...) before a single item is added through the Channel's > > own methods, you get a NullPointerException. > > > > Joe > > > > --------------------------------------------------------- > Joseph B. Ottinger jo...@en... > http://enigmastation.com IT Consultant > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Rsslibj-developer mailing list > Rss...@li... > https://lists.sourceforge.net/lists/listinfo/rsslibj-developer > --------------------------------------------------------- Joseph B. Ottinger jo...@en... http://enigmastation.com IT Consultant |