Join Slack
Powered by
Is it possible to use Sealed Class in DiffUtil, if...
# android
m
Mohamed Ibrahim
09/15/2019, 8:06 PM
Is it possible to use Sealed Class in DiffUtil, if yes what could be a proper implementation of it .. the purpose is to have a different types of ViewHolders
g
gildor
09/16/2019, 12:17 AM
Why not? Sealed class is a class as any other, just use
when
to compare only matching types
m
Mohamed Ibrahim
09/17/2019, 4:18 PM
👍
3
Views
Open in Slack
Previous
Next