implement hashCode for MultipleChoiceFilterValue

This commit is contained in:
Johan von Forstner
2020-12-24 15:38:58 +01:00
parent a0045fc6bb
commit 1e04d6e98a

View File

@@ -256,6 +256,13 @@ data class MultipleChoiceFilterValue(
!other.all && values == other.values
}
}
override fun hashCode(): Int {
var result = key.hashCode()
result = 31 * result + all.hashCode()
result = 31 * result + if (all) 0 else values.hashCode()
return result
}
}
@Entity