Code example for Parcel

Methods: readValue

0
		dest.writeValue(followings);
	} 
 
	@SuppressWarnings("unchecked") 
    public void readFromParcel(Parcel in) {
		user = User.class.cast(in.readValue(User.class.getClassLoader()));
		likes = ArrayList.class.cast(in.readValue(ArrayList.class.getClassLoader()));
		bookmarks = ArrayList.class.cast(in.readValue(ArrayList.class.getClassLoader()));
		followers = String[].class.cast(in.readValue(String[].class.getClassLoader()));
		followings = String[].class.cast(in.readValue(String[].class.getClassLoader()));
	} 
 
	 
	public void setLikes(ArrayList<Like> likes) {
		this.likes = likes;
	} 
	 
	 
	public ArrayList<Like> getLikes() {
		return likes;
	}