Add Tab.hashCode() to go with equals
This commit is contained in:
parent
96d731dfc7
commit
01aab25889
1 changed files with 5 additions and 0 deletions
|
@ -119,6 +119,11 @@ public abstract class Tab {
|
|||
return getTabId() == other.getTabId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(getTabId());
|
||||
}
|
||||
|
||||
/*//////////////////////////////////////////////////////////////////////////
|
||||
// JSON Handling
|
||||
//////////////////////////////////////////////////////////////////////////*/
|
||||
|
|
Loading…
Reference in a new issue