Reputation: 992
I have a slightly long class type: MutableLiveData<MutableMap<String, List<MyItems>>>
.
is it possible to make MutableMap<String, List<MyItems>>
shorten with some kind of a data class or something like that without adding a lot of code?
Upvotes: 0
Views: 70
Reputation: 10330
I may not be fully understanding the ask but could you just use something like:
typealias YourMapType = MutableMap<String, List<MyItems>>
Upvotes: 3