On Thu, Feb 08, 2001 at 07:35:23AM -0500, Scott Tavares wrote:
> but... now that I think about it, if you returned the List interface you
> could do this just as easily:
>
> Iterator myIterator = MyPeer.doSelect(crit).iterator();
> while(myIterator.hasNext())
> {
> ... doSomthing()
> }
>
> Just thinking out loud...
And you can't find out things like the size of the collection easily
from an Iterator... a List is definitely the correct return type.
--
Sean Legassick
[EMAIL PROTECTED]
Czlowiekiem jestem i nic co ludzkie nie jest mi obce
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]
- [PROPOSAL] switch Peers to use List. John McNally
- Re: [PROPOSAL] switch Peers to use List. Jason van Zyl
- Re: [PROPOSAL] switch Peers to use List. Daniel Rall
- RE: [PROPOSAL] switch Peers to use List. fanyun
- Re: [PROPOSAL] switch Peers to use List. Jon Stevens
- Re: [PROPOSAL] switch Peers to use List. Daniel Rall
- Re: [PROPOSAL] switch Peers to use List. John McNally
- Re: [PROPOSAL] switch Peers to use List. Rafal Krzewski
- Re: [PROPOSAL] switch Peers to use List. Sean Legassick
- Re: [PROPOSAL] switch Peers to use List. Scott Tavares
- Re: [PROPOSAL] switch Peers to use List. Sean Legassick
- Re: [PROPOSAL] switch Peers to use List. Scott Tavares
- RE: [PROPOSAL] switch Peers to use List. Chris Campbell
- Re: [PROPOSAL] switch Peers to use List. Daniel Rall
- Re: [PROPOSAL] switch Peers to use List. Sean Legassick
