On Tue, 19 Aug 2003, Stephen Colebourne wrote:
> From: "Henri Yandell" <[EMAIL PROTECTED]> > > Firstly, SingletonIterator and SingletonListIterator seem quite similar. > > Apart from the extra type of 'ListIterator', it appears that a > > SingletonListIterator can do the job of a SingletonIterator in all jobs. > > Could just remove SingleIterator. > True, but somebody may only want the Iterator interface to be implemented. > By having both we give the user the flexibility to choose. Agreed. Trying to 'package' defensively :) SingletonListIterator could become a static on SingletonIterator: SingletonIterator.asListIterator(Object) or some such. Mainly just trying to make Collections easier to grokk. > > Second question. What's ListIteratorWrapper useful for? > > It seems to just let us throw a normal Iterator into something requiring > > ListIterator-ness, except then it'll go ahead and throw exceptions on most > > methods. So is it just an iterator that can get the previous element? > Yep, it allows forwards and backwards movement through any iterator, not > just list iterators. And no, I don't know why its useful. So basically a decorator pattern, but not a stunningly useful one. > > Next. MultiMap has a remove(Object, Object) contract and therefore is not > > a tag interface as the javadoc states. > Actually MultiMap is a poor interface that probably should be changed. It is > a difficult decision as we are not supposed to change interfaces, but it is > perhaps unlikely that there are too many implementations of this one. See > bugzilla. Agreed. My preference would be to remove MultiMap, rename MultiHashMap to MultiMap and then rewrite it to decorate a passed in Map. But I've said this before and not found the time to get stuck in. > > The javadoc for a priority queue does not explain what a priority > > queue is. > Not sure if I remember either. Heh. And we wonder why users are confused :) > > FastXxx classes say that they are not cross-platform, but in no way > > discuss which platforms they are targetted at. This makes these classes > > useless except to the authors. > IIRC, nobody can ever answer this question. It may be a theoretical risk, or > a real one. Who knows? Dunno. Hopefully someone on the project has a clue? Hen --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
