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 ?
Asked
Active
Viewed 1,300 times
2

AdrianoCelentano
- 2,461
- 3
- 31
- 42
1 Answers
2
EnumSet implements Serializable
hence you can use out.writeSerializable(enumset)

asenovm
- 6,397
- 2
- 41
- 52
-
Add a cast ot EnumSet --> `EnumSet
read = (EnumSet – asenovm Apr 02 '13 at 12:51) in.readSerializable()`