Added hashCode() implementation to equal equals()
This commit is contained in:
parent
4638de1714
commit
fba3c68ef2
|
@ -53,6 +53,10 @@ actual class BigDecimal(val decimal: NSDecimalNumber) : Comparable<BigDecimal> {
|
||||||
return super.equals(other)
|
return super.equals(other)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun hashCode(): Int {
|
||||||
|
return decimal.hashCode()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
return decimal.description ?: decimal.descriptionWithLocale(NSLocale.currentLocale)
|
return decimal.description ?: decimal.descriptionWithLocale(NSLocale.currentLocale)
|
||||||
|
|
Loading…
Reference in New Issue