java - Identical Parcel methods? -
readlist
documentation:
read existing list object parcel @ current dataposition(), using given class loader load enclosed parcelables. if null, default class loader used.
readtypedlist
documentation:
read given list items containing particular object type written writetypedlist(list) @ current dataposition(). list must have been written via writetypedlist(list) same object type.
i have couple questions because i'm confused each used:
what fundamentally difference between using these 2 methods (with corresponding
write
methods of course)?in situations 1 used on other - or can either used marshall/unmarshall lists?
why
readlist
takeclassloader
parameter, whilereadtypedlist
takecreator
parameter (the anonymous inner class defined) - what's specific reason this?
Comments
Post a Comment