It really should return an Iterator...

Iterator myIterator = MyPeer.doSelect(crit);
while(myIterator.hasNext())
{
    ... doSomthing()
}

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...

-scott-

----- Original Message -----
From: "John McNally" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 5:07 PM
Subject: [PROPOSAL] switch Peers to use List.


> The doSelect, etc. methods in the Peers return a Vector.  We really
> should move to using the List interface.
>
> Objections?
>
> John McNally
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
>



------------------------------------------------------------
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