Code example for Parcel

Methods: writeDoublewriteIntwriteLongwriteParcelablewriteString

0
		return 0; 
	} 
 
    @Override 
    public void writeToParcel(Parcel out, int flags) {
    	out.writeString(name);
    	out.writeString(version);
    	out.writeParcelable(author, flags);
    	out.writeInt(favoriteCount);
    	writeParcelBoolean(out, myFavorite);
    	out.writeLong(ratingCount);
    	out.writeDouble(ratingMean);
    	out.writeString(license);
    } 
 
    public static final Parcelable.Creator<Release> CREATOR
            = new Parcelable.Creator<Release>() { 
        @Override 
        public Release createFromParcel(Parcel in) { 
            return new Release(in); 
Experience pair programming with AI  Get Codota for Java