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]

Reply via email to