Skip to content

Commit 441c68e

Browse files
committed
Add hashCode() to match equals(other)
1 parent 882b235 commit 441c68e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueue.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,11 @@ public boolean equals(@Nullable final Object obj) {
509509
return streams.equals(other.streams);
510510
}
511511

512+
@Override
513+
public int hashCode() {
514+
return streams.hashCode();
515+
}
516+
512517
public boolean isDisposed() {
513518
return disposed;
514519
}

0 commit comments

Comments
 (0)