I have a data structure MyObject
that implements the Parcelable
interface, and I want to pass a CopyOnWriteArrayList<MyObject>
object to a Bundle object to create a new Fragment. So I tried
Bundle args = new Bundle();
args.putParcelableArrayList("RssItems", rssItems);
But since CopyOnWriteArrayList is not a subclass of ArrayList, it does not match the method signature.
Is there any way to pass a CopyOnWriteArrayList to a Bundle object?