Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写该writeToParcel方法,并且我的模型具有EnumSet<object>as 属性。我不知道out.write....()我必须为这种类型使用哪个?
writeToParcel
EnumSet<object>
out.write....()
EnumSet 实现Serializable,因此您可以使用out.writeSerializable(enumset)
Serializable
out.writeSerializable(enumset)