geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Jackson" <>
Subject RE: [General] Container interface and AbstractContainer
Date Thu, 14 Aug 2003 11:27:12 GMT
From: Alex Blewitt [] 
> Can you use ListIterator to go from the end? I know it allows you to
> backwards/forwards, but can you go to the end directly? Or do you have

> to scan through to the end, then work backwards?

You can work from the end if you *start* at the end (by passing an
appropriate argument to the listIterator() method of your list) but once
you've got the iterator you're limited to working backwards and
forwards. If we want complete flexibility of how to navigate the
collection of components, then returning a List rather than a
ListIterator might be the only option.


View raw message