You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lécharny (Jira)" <ji...@apache.org> on 2020/02/28 14:14:00 UTC

[jira] [Closed] (DIRSERVER-1382) Change the Cursor semantic for the next() and previous() methods

     [ https://issues.apache.org/jira/browse/DIRSERVER-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lécharny closed DIRSERVER-1382.
----------------------------------------
    Resolution: Fixed

> Change the Cursor semantic for the next() and previous() methods
> ----------------------------------------------------------------
>
>                 Key: DIRSERVER-1382
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1382
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>    Affects Versions: 1.5.4
>            Reporter: Emmanuel Lécharny
>            Priority: Major
>
> The next() and previous() method semantic is not what we should expect for a cursor. They should return an Objectt and not a status. That would help to get closer to the well known semantic of an iterator (even though the previous() method is not present in an Iterator).
> In other words, it should be possible to do a next() to get the object *and* get the cursor moved one step further, instead of doing a next() and get().



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org