Skip to content

Commit

Permalink
include primary & parallel locales in equals and hashcode methods
Browse files Browse the repository at this point in the history
  • Loading branch information
frett committed Dec 18, 2024
1 parent 9a1eaea commit 448e4c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/model/src/main/kotlin/org/cru/godtools/model/Tool.kt
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ class Tool(
isScreenShareDisabled != other.isScreenShareDisabled -> false
shares != other.shares -> false
pendingShares != other.pendingShares -> false
primaryLocale != other.primaryLocale -> false
parallelLocale != other.parallelLocale -> false
apiId != other.apiId -> false
metatoolCode != other.metatoolCode -> false
defaultVariantCode != other.defaultVariantCode -> false
Expand All @@ -234,6 +236,8 @@ class Tool(
result = 31 * result + isScreenShareDisabled.hashCode()
result = 31 * result + shares
result = 31 * result + pendingShares
result = 31 * result + (primaryLocale?.hashCode() ?: 0)
result = 31 * result + (parallelLocale?.hashCode() ?: 0)
result = 31 * result + (apiId?.hashCode() ?: 0)
result = 31 * result + (metatoolCode?.hashCode() ?: 0)
result = 31 * result + (defaultVariantCode?.hashCode() ?: 0)
Expand Down

0 comments on commit 448e4c2

Please sign in to comment.