AdrianoCelentano
AdrianoCelentano

Reputation: 2591

EnumSet parcelable

I'm writting the writeToParcel method and my model has an EnumSet<object> as attribut. I don't know which out.write....() i have to use for this type ?

Upvotes: 2

Views: 1320

Answers (1)

asenovm
asenovm

Reputation: 6517

EnumSet implements Serializable hence you can use out.writeSerializable(enumset)

Upvotes: 2

Related Questions