Code example for Parcel

Methods: writeIntwriteLongwriteStringwriteStringList

0
    public int describeContents() { 
        return 0; 
    } 
 
    public void writeToParcel(final Parcel dest, final int flags) {
        dest.writeString(title);
        dest.writeString(link);
        dest.writeString(description);
 
        dest.writeString(commentsLink);
        dest.writeLong(pubDate);
        dest.writeString(author);
 
        dest.writeString(enclosureLink);
        dest.writeInt(enclosureSize);
        dest.writeString(enclosureMimeType);
 
        dest.writeString(guid);
        dest.writeInt(isGuidPermaLink ? 1 : 0);
 
        dest.writeStringList(categoryList);
 
        dest.writeString(encodedContext);
 
        dest.writeString(sourceLink);
        dest.writeString(sourceText);
    } 
 
    public static final Parcelable.Creator<RssItem> CREATOR = new Parcelable.Creator<RssItem>() {
        public RssItem createFromParcel(final Parcel in) { 
            return new RssItem(in); 
Connect your IDE to all the code out there  Get Codota for Java