newIndex property

int newIndex
final

The index of the changed document in the result set immediately after this DocumentChange (i.e. supposing that all prior DocumentChangePlatform objects and the current DocumentChangePlatform object have been applied).

-1 for DocumentChangeType.removed events.

Implementation

final int newIndex;