Code example for Parcel

Methods: readIntreadLongreadParcelablereadString

0
 
    } 
 
    public ForumPostData(Parcel in) {
 
        postId = in.readLong();
        date = in.readLong();
        threadId = in.readLong();
 
        profileData = in.readParcelable(ProfileData.class
                .getClassLoader());
 
        content = in.readString();
 
        numReports = in.readInt();
 
        censored = (in.readInt() == 1);
        official = (in.readInt() == 1);
 
    } 
 
    // Getters 
    public long getPostId() { 
Experience pair programming with AI  Get Codota for Java