createEnumSetOptimized
inline fun <T : Enum<T>> Parcel.createEnumSetOptimized(elementReader: (Parcel) -> T): EnumSet<T>?
Content copied to clipboard
Creates and reads an EnumSet set with element type T from a Parcel, by invoking elementReader on each element of the EnumSet.
The set must have been written by Parcel.writeCollectionOptimized.
Return
null
when the collection
argument of Parcel.writeCollectionOptimized is null
.