I have a base generic abstract class, lets call it Base<T>
class.
This class extended by few subclass, with different types for T mData
.
Let's say that I have class Sub1 extends Base<byte []>
and class Sub2 extends Base<Object>
.
In addition, I have a instancesList with type of List<Base<T>>
, compounded from instances of Sub1
and Sub2
.
- How can I parcel/un-parcel this list as a whole?
- Where should I implement the
Parcelable
interface? Where does theCREATOR
goes, if any?