Added
Indicates a new document was added to the set of documents matching the query.
Modified
Indicates document within the query was modified.
Removed
Indicates a document within the query was removed (either deleted or no longer matches the query).
intNewIndex
The index of the changed document in the result set immediately after this DocumentChange (i.e.
supposing that all prior DocumentChange objects and the current DocumentChange object have been applied). Returns -1 for 'removed' events.
intOldIndex
The index of the changed document in the result set immediately prior to this DocumentChange (i.e.
supposing that all prior DocumentChange objects have been applied). Returns -1 for 'added' events.
DocumentSnapshotDocument=>newDocumentSnapshot(_proxy.document(),_firestore)
Returns the newly added or modified document if this DocumentChange is for an updated document.
Returns the deleted document if this document change represents a removal.
overrideboolEquals(objectobj)
boolEquals(DocumentChangeother)
overrideintGetHashCode()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.