Add PlaylistTab.hashCode() matching equals

This commit is contained in:
Eric Xu
2021-05-26 12:01:30 -04:00
committed by Zhiheng Xu
parent 2fc26bc154
commit 448989f32f
@@ -618,6 +618,18 @@ public abstract class Tab {
&& playlistType == other.playlistType;
}
@Override
public int hashCode() {
return Objects.hash(
getTabId(),
playlistServiceId,
playlistId,
playlistUrl,
playlistName,
playlistType
);
}
public int getPlaylistServiceId() {
return playlistServiceId;
}