incubator-chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Klevenz, Stephan" <stephan.klev...@sap.com>
Subject RE: Iterable
Date Wed, 05 May 2010 14:42:06 GMT
Well, getPosition() returned a simple calculated value (skipCount + offset), where offset is
the number of next() calls to the iterator. It should be easy to get that value calculated
outside the class.

To be honest, getHasMoreItems() disappeared accidently. But I have seen that Dave has restored
already.

Regards,
Stephan



-----Original Message-----
From: David Caruana [mailto:david.caruana@alfresco.com] 
Sent: Mittwoch, 5. Mai 2010 15:28
To: chemistry-dev@incubator.apache.org
Subject: Re: Iterable

Also, getHasMoreItems() has been removed, which I'd like to restore. This allows access to
the boolean returned by the server.


On 5 May 2010, at 14:21, Florent Guillaume wrote:

> On Wed, May 5, 2010 at 11:36 AM, David Caruana
> <david.caruana@alfresco.com> wrote:
>> On 5 May 2010, at 09:59, Klevenz, Stephan wrote:
>>> I did fix this issue and decided to re-name the Iterable to ItemIterable. I'm
not sure if we have a consensus on the naming, but the naming can change again easily.
>>> https://issues.apache.org/jira/browse/CMIS-200
>>> Furthermore I would like to support Florents idea to eliminate the Iterator interface
and would propose the following:
>> 
>>>        long getPosition() -> eliminate method, only required for implementation
> 
> Well, it can be useful to know the current position of an iterable
> that's being passed around between methods. And the implementation is
> basically free :) So I'd like to add it back at some point in the
> future.
> 
> 
> Florent
> 
> PS: sorry I haven't been more active these days, I'm kept from doing
> Chemistry work by other engagements. I'll also be away from May 15th
> to 22nd so if someone thinks he'll do a better jobs shepherding the
> first release please go ahead :)
> 
> 
> -- 
> Florent Guillaume, Director of R&D, Nuxeo
> Open Source, Java EE based, Enterprise Content Management (ECM)
> http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87


Mime
View raw message