File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
firebase-firestore/src/main/java/com/google/firebase/firestore/local Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 4444import java .util .Iterator ;
4545import java .util .List ;
4646import java .util .Map ;
47+ import java .util .Objects ;
4748import java .util .Set ;
4849import java .util .concurrent .ConcurrentHashMap ;
4950import java .util .concurrent .Executor ;
@@ -488,6 +489,25 @@ private static class BackfillKey {
488489 this .readTimeNanos = readTimeNanos ;
489490 }
490491
492+ @ Override
493+ public boolean equals (Object object ) {
494+ if (object == this ) {
495+ return true ;
496+ }
497+ if (!(object instanceof BackfillKey )) {
498+ return false ;
499+ }
500+ BackfillKey other = (BackfillKey ) object ;
501+ return readTimeSeconds == other .readTimeSeconds
502+ && readTimeNanos == other .readTimeNanos
503+ && Objects .equals (path , other .path );
504+ }
505+
506+ @ Override
507+ public int hashCode () {
508+ return Objects .hash (path , readTimeSeconds , readTimeNanos );
509+ }
510+
491511 @ NonNull
492512 @ Override
493513 public String toString () {
You can’t perform that action at this time.
0 commit comments