kopia lustrzana https://github.com/TeamNewPipe/NewPipe
Add PlaylistTab.hashCode() matching equals
rodzic
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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue