While learning to iterate over a cursor, I learned that I needed to first move to position "-1" and then use "moveToNext" in a loop:
cursor.moveToPosition(-1);
for (int i = 0; cursor.moveToNext(); i++) {
//do something with the cursor
}
While mathematically this makes sense, I don't know what it means to move to a cursor to a negative position. The documentation just says it's valid–doesn't seem to say how it's used.
Is this used ONLY to make iteration possible, or is there other use cases for the position -1?