Monday, 8 October 2018

Difference between `createTypedArrayList()` and `readTypedList()` in Parcel

While deserializing parcelables, I normally use the method createTypedArrayList (Creator<T> c) to read parcelable array lists.

I have recently found another method readTypedList (List<T> list, Creator<T> c) which seems does the exact same thing. Even the doc looks identical. Is there any difference between them apart from their implementation*?

* : The former creates new array list where the latter appends to an existing one



from Difference between `createTypedArrayList()` and `readTypedList()` in Parcel

No comments:

Post a Comment