You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: branches/mrschmidt-sizefix/google-cloud-firestore/src/main/java/com/google/cloud/firestore/DocumentChange.java
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@
16
16
17
17
packagecom.google.cloud.firestore;
18
18
19
+
importjava.util.Objects;
19
20
importjavax.annotation.Nonnull;
20
21
21
22
/**
@@ -87,4 +88,30 @@ public int getOldIndex() {
87
88
publicintgetNewIndex() {
88
89
returnnewIndex;
89
90
}
91
+
92
+
/**
93
+
* Returns true if this DocumentChange is equal to the provided object.
94
+
*
95
+
* @param obj The object to compare against.
96
+
* @return Whether this DocumentChange is equal to the provided object.
97
+
*/
98
+
@Override
99
+
publicbooleanequals(Objectobj) {
100
+
if (this == obj) {
101
+
returntrue;
102
+
}
103
+
if (obj == null || getClass() != obj.getClass()) {
Copy file name to clipboardExpand all lines: branches/mrschmidt-sizefix/google-cloud-firestore/src/main/java/com/google/cloud/firestore/DocumentReference.java
Copy file name to clipboardExpand all lines: branches/mrschmidt-sizefix/google-cloud-firestore/src/main/java/com/google/cloud/firestore/DocumentSet.java
Copy file name to clipboardExpand all lines: branches/mrschmidt-sizefix/google-cloud-firestore/src/main/java/com/google/cloud/firestore/DocumentSnapshot.java
+13-9Lines changed: 13 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -411,25 +411,29 @@ Write.Builder toPb() {
411
411
returnwrite;
412
412
}
413
413
414
+
/**
415
+
* Returns true if the document's data and path in this DocumentSnapshot equals the provided
416
+
* snapshot.
417
+
*
418
+
* @param obj The object to compare against.
419
+
* @return Whether this DocumentSnapshot is equal to the provided object.
420
+
*/
414
421
@Override
415
-
publicbooleanequals(Objecto) {
416
-
if (this == o) {
422
+
publicbooleanequals(Objectobj) {
423
+
if (this == obj) {
417
424
returntrue;
418
425
}
419
-
if (o == null || getClass() != o.getClass()) {
426
+
if (obj == null || getClass() != obj.getClass()) {
Copy file name to clipboardExpand all lines: branches/mrschmidt-sizefix/google-cloud-firestore/src/main/java/com/google/cloud/firestore/FieldValue.java
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ public abstract class FieldValue {
Copy file name to clipboardExpand all lines: branches/mrschmidt-sizefix/google-cloud-firestore/src/main/java/com/google/cloud/firestore/Precondition.java
0 commit comments