Maybe I'm missing something, but why all this use of ObjectIterator? If you have a List, you call it's .iterator() or .listIterator() method and it returns an Iterator. Why do we need a seperate class to convert a Vector into an Iterator?
Also, the whole point of using the Iterator interface is to hide the underlying implementation of Iterator, since we really don't care how the Iterator works, just that it works. So why does every method accept ObjectIterator's instead of Iterator's? |