Moshi Adapters for Platform Types like ArrayList and LinkedList (Part 2)
26Apr
Earlier we created a generic adapter that supported concrete collection types in Moshi. However, sometimes the type of the item within the collection isn’t available. We’ll need to create another adapter but there is a problem – Java type erasure. Even though we might know the type ahead of time in the code, by the time we get to runtime …