directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kiran Ayyagari (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRAPI-184) Supply one method in SearchCursor to judge it has element or not.
Date Thu, 27 Mar 2014 09:12:39 GMT

    [ https://issues.apache.org/jira/browse/DIRAPI-184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13949065#comment-13949065
] 

Kiran Ayyagari commented on DIRAPI-184:
---------------------------------------

bq. But next() will advance the cursor ...

it is not possible to find the availability of an element without advancing first. One other
way is to backtrack with previous() after calling next()
but that is not always supported in all types of cursors.

available() can only give the correct result after calling next()/previosu().

> Supply one method in SearchCursor to judge it has element or not.
> -----------------------------------------------------------------
>
>                 Key: DIRAPI-184
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-184
>             Project: Directory Client API
>          Issue Type: Improvement
>    Affects Versions: 1.0.0-M21
>            Reporter: Robert Hou
>
> In some case, I need one method in org.apache.directory.api.ldap.model.cursor.SearchCursor
to judge it has element or not. If not, I would not process the later logic.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message