Using now nullable hashCode() method

This commit is contained in:
dankito 2024-10-09 19:12:24 +02:00
parent 8dc2174081
commit 8346fb5077
4 changed files with 14 additions and 14 deletions

View File

@ -27,9 +27,9 @@ open class MobilePhoneTanMedium(
override fun hashCode(): Int {
var result = super.hashCode()
result = 31 * result + (concealedPhoneNumber?.hashCode() ?: 0)
result = 31 * result + (phoneNumber?.hashCode() ?: 0)
result = 31 * result + (smsDebitAccount?.hashCode() ?: 0)
result = 31 * result + concealedPhoneNumber.hashCode()
result = 31 * result + phoneNumber.hashCode()
result = 31 * result + smsDebitAccount.hashCode()
return result
}

View File

@ -35,9 +35,9 @@ open class TanGeneratorTanMedium(
var result = super.hashCode()
result = 31 * result + cardNumber.hashCode()
result = 31 * result + cardSequenceNumber.hashCode()
result = 31 * result + (cardType?.hashCode() ?: 0)
result = 31 * result + (validFrom?.hashCode() ?: 0)
result = 31 * result + (validTo?.hashCode() ?: 0)
result = 31 * result + cardType.hashCode()
result = 31 * result + validFrom.hashCode()
result = 31 * result + validTo.hashCode()
return result
}

View File

@ -148,10 +148,10 @@ open class AccountTransaction(
result = 31 * result + amount.hashCode()
result = 31 * result + reference.hashCode()
result = 31 * result + bookingDate.hashCode()
result = 31 * result + (otherPartyName?.hashCode() ?: 0)
result = 31 * result + (otherPartyBankId?.hashCode() ?: 0)
result = 31 * result + (otherPartyAccountId?.hashCode() ?: 0)
result = 31 * result + (postingText?.hashCode() ?: 0)
result = 31 * result + otherPartyName.hashCode()
result = 31 * result + otherPartyBankId.hashCode()
result = 31 * result + otherPartyAccountId.hashCode()
result = 31 * result + postingText.hashCode()
result = 31 * result + valueDate.hashCode()
return result
}

View File

@ -85,10 +85,10 @@ open class AccountTransaction(
var result = amount.hashCode()
result = 31 * result + reference.hashCode()
result = 31 * result + bookingDate.hashCode()
result = 31 * result + (otherPartyName?.hashCode() ?: 0)
result = 31 * result + (otherPartyBankId?.hashCode() ?: 0)
result = 31 * result + (otherPartyAccountId?.hashCode() ?: 0)
result = 31 * result + (postingText?.hashCode() ?: 0)
result = 31 * result + otherPartyName.hashCode()
result = 31 * result + otherPartyBankId.hashCode()
result = 31 * result + otherPartyAccountId.hashCode()
result = 31 * result + postingText.hashCode()
result = 31 * result + valueDate.hashCode()
return result
}