Is it possible to parcel a generic class?
问题 I'm trying to create public class MyClass<T extends Parcelable> implements Parcelable . I'm having trouble implementing Parcelable . Is it possible to create a generic class that implements Parcelable ? (Note that T is bounded so that it also must implement Parcelable ). I am running into trouble with the fact that the Parcelable interface requires a static variable: public static final Parcelable.Creator<MyParcelable> CREATOR . Thus I cannot do public static final Parcelable.Creator<MyClass