Closed Namolem closed 6 years ago
Good practice is to use interfaces instead of realizations.
In this case we are forced to use ArrayList, so in my code I have to do such thing:
fun showVouchers(items: List<VoucherItem>) { voucherAdapter.setItemList(ArrayList(items)) }
Indeed. Thanks!
Good practice is to use interfaces instead of realizations.
In this case we are forced to use ArrayList, so in my code I have to do such thing: