https://kotlinlang.org logo
p

Paul Woitaschek

02/16/2018, 9:58 PM
Well it could just work like in my example: leafes writeToParcel first call super, then write themselfes. Parent checks for the leaf type, encodes the type and then writes it's own fields.