public class DocumentChange extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DocumentChange.Type
An enumeration of snapshot diff types.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns true if this DocumentChange is equal to the provided object.
|
QueryDocumentSnapshot |
getDocument()
Returns the newly added or modified document if this DocumentChange is for an updated document.
|
int |
getNewIndex()
The index of the changed document in the result set immediately after this DocumentChange (i.e.
|
int |
getOldIndex()
The index of the changed document in the result set immediately prior to this DocumentChange
(i.e.
|
DocumentChange.Type |
getType() |
int |
hashCode() |
@Nonnull public DocumentChange.Type getType()
@Nonnull public QueryDocumentSnapshot getDocument()
public int getOldIndex()
public int getNewIndex()
public boolean equals(Object obj)
Copyright © 2019 Google LLC. All rights reserved.