mardi 14 août 2018

How to implement Null Object pattern on data class in Kotlin?

I have a Kotlin data class:

data class PaymentAccount(
    val accountId: Int,
    val accountNumber: String,
    val title: String
)

How to implement Null Object pattern properly?

Aucun commentaire:

Enregistrer un commentaire