1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-06-26 07:03:20 +00:00

Add Tab.hashCode() to go with equals

This commit is contained in:
Eric Xu 2021-05-22 00:07:56 -04:00 committed by Zhiheng Xu
parent 96d731dfc7
commit 01aab25889

View File

@ -119,6 +119,11 @@ public abstract class Tab {
return getTabId() == other.getTabId();
}
@Override
public int hashCode() {
return Objects.hashCode(getTabId());
}
/*//////////////////////////////////////////////////////////////////////////
// JSON Handling
//////////////////////////////////////////////////////////////////////////*/