Is Android Cursor.moveToNext() Documentation Correct?

后端 未结 5 1917
春和景丽
春和景丽 2021-01-12 03:00

boolean android.database.Cursor.moveToNext() documentation says:

http://developer.android.com/reference/android/database/Cursor.html#moveToNext%28%29

Move th

5条回答
  •  走了就别回头了
    2021-01-12 03:09

    Cursor.moveToNext() returning a boolean is only useful if it will not move the cursor past the last entry in the data set. Thus, I have submitted a bug report on the documentation's issue tracker.

    https://issuetracker.google.com/issues/69259484

    It reccomends the following sentence:
    "This method will return false if the current (at time of execution) entry is the last entry in the set, and there is no next entry to be had."

提交回复
热议问题