Add ChannelTab.hashCode() matching equals

This commit is contained in:
Eric Xu 2021-05-22 00:23:32 -04:00 committed by Zhiheng Xu
parent 14bbaccb9f
commit 1812249d37
1 changed files with 5 additions and 0 deletions

View File

@ -456,6 +456,11 @@ public abstract class Tab {
&& channelName.equals(other.channelName);
}
@Override
public int hashCode() {
return Objects.hash(getTabId(), channelServiceId, channelUrl, channelName);
}
public int getChannelServiceId() {
return channelServiceId;
}