[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cursors/Iterators



On Tue, 22 Aug 2000, Robert Colquhoun wrote:
> At 05:16 PM 8/21/00 +0200, Falko Braeutigam wrote:
> >On Mon, 21 Aug 2000, Robert Colquhoun wrote:
> > > Hi,
> > >
> > > This is a beginner question - i am having real trouble getting some 
> > kind of
> > > cursor to work, in the class below every time next() is called it returns
> > > the first element from the iterator, not progressing to the second element
> > > and never reaching the end of the list.
> >Did you mark the next() method to be an update method? If not, the changes of
> >the iterator (i.next()) are not persistent.
> 
> I added /*update*/ to the interface PRICES which PRICESImpl implements.  Is 
> that the right place, or should the update comment be in PRICESImpl itself?
No, you did it totally right. Still, I don't know what's going wrong with your
code :( Maybe it's a problem of the DxLib classes. Can you try Java2
collections instead of DxLib? 


Falko
-- 
______________________________________________________________________
Falko Braeutigam                              mailto:falko@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com